diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-07-22 23:45:53 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-07-22 23:45:53 +0100 |
commit | e5d520f448dc3e6a2aa9e148031f00c8cee0d4fc (patch) | |
tree | 35109715cab0b4d0afe0eb74503dacf50fda5f5d | |
parent | 1901905a00b1cfb19383543d78b741cf5c42c351 (diff) | |
download | prosody-e5d520f448dc3e6a2aa9e148031f00c8cee0d4fc.tar.gz prosody-e5d520f448dc3e6a2aa9e148031f00c8cee0d4fc.zip |
net.server_event: Remove unused variables and imports
-rw-r--r-- | net/server_event.lua | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/net/server_event.lua b/net/server_event.lua index 3c4185af..de44e5fd 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -33,8 +33,6 @@ local cfg = { } local function use(x) return rawget(_G, x); end -local print = use "print" -local pcall = use "pcall" local ipairs = use "ipairs" local string = use "string" local select = use "select" @@ -212,7 +210,6 @@ do self:_lock( false, false, false ) -- unlock the interface; sending, closing etc allowed self.send = self.conn.send -- caching table lookups with new client object self.receive = self.conn.receive - local onsomething if not call_onconnect then -- trigger listener self:onstatus("ssl-handshake-complete"); end @@ -470,9 +467,7 @@ do local string_sub = string.sub -- caching table lookups local string_len = string.len local addevent = base.addevent - local coroutine_wrap = coroutine.wrap local socket_gettime = socket.gettime - local coroutine_yield = coroutine.yield function handleclient( client, ip, port, server, pattern, listener, sslctx ) -- creates an client interface --vdebug("creating client interfacce...") local interface = { @@ -742,7 +737,7 @@ end )( ) local addclient, wrapclient do - function wrapclient( client, ip, port, listeners, pattern, sslctx, startssl ) + function wrapclient( client, ip, port, listeners, pattern, sslctx ) local interface = handleclient( client, ip, port, nil, pattern, listeners, sslctx ) interface:_start_connection(sslctx) return interface, client @@ -778,9 +773,6 @@ do local res, err = client:connect( addr, serverport ) -- connect if res or ( err == "timeout" ) then local ip, port = client:getsockname( ) - local server = function( ) - return nil, "this is a dummy server interface" - end local interface = wrapclient( client, ip, serverport, listener, pattern, sslctx, startssl ) interface:_start_connection( startssl ) debug( "new connection id:", interface.id ) |