From 03ce7ab3859605cc99e8687dc00b8043206e69e5 Mon Sep 17 00:00:00 2001 From: Hanlei Qin Date: Fri, 6 Oct 2017 00:42:48 +0800 Subject: [PATCH] remove useless code. --- lualib/skynet/snax.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lualib/skynet/snax.lua b/lualib/skynet/snax.lua index c21272b2..44e869e1 100644 --- a/lualib/skynet/snax.lua +++ b/lualib/skynet/snax.lua @@ -108,14 +108,6 @@ function snax.newservice(name, ...) return snax.bind(handle, name) end -local function service_name(global, name, ...) - if global == true then - return name - else - return global - end -end - function snax.uniqueservice(name, ...) local handle = assert(skynet.call(".service", "lua", "LAUNCH", "snaxd", name, ...)) return snax.bind(handle, name)