mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
remove unused code
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
-- read https://github.com/cloudwu/skynet/wiki/FAQ for the module "skynet.core"
|
-- read https://github.com/cloudwu/skynet/wiki/FAQ for the module "skynet.core"
|
||||||
local c = require "skynet.core"
|
local c = require "skynet.core"
|
||||||
local tostring = tostring
|
local tostring = tostring
|
||||||
local tonumber = tonumber
|
|
||||||
local coroutine = coroutine
|
local coroutine = coroutine
|
||||||
local assert = assert
|
local assert = assert
|
||||||
local pairs = pairs
|
local pairs = pairs
|
||||||
@@ -69,9 +68,6 @@ local fork_queue = {}
|
|||||||
-- suspend is function
|
-- suspend is function
|
||||||
local suspend
|
local suspend
|
||||||
|
|
||||||
local function string_to_handle(str)
|
|
||||||
return tonumber("0x" .. string.sub(str , 2))
|
|
||||||
end
|
|
||||||
|
|
||||||
----- monitor exit
|
----- monitor exit
|
||||||
|
|
||||||
@@ -179,7 +175,7 @@ local function dispatch_wakeup()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- suspend is local function
|
-- suspend is local function
|
||||||
function suspend(co, result, command, param, param2)
|
function suspend(co, result, command)
|
||||||
if not result then
|
if not result then
|
||||||
local session = session_coroutine_id[co]
|
local session = session_coroutine_id[co]
|
||||||
if session then -- coroutine may fork by others (session is nil)
|
if session then -- coroutine may fork by others (session is nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user