From f17b64ca4d34fef5b9dc99d037a0b73936bcf2f1 Mon Sep 17 00:00:00 2001 From: Brandon Sturgeon Date: Mon, 6 May 2024 19:47:16 -0700 Subject: [PATCH] Remove vararg funcs (#4) --- .../core/custom/playercore.lua | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/lua/entities/gmod_wire_expression2/core/custom/playercore.lua b/lua/entities/gmod_wire_expression2/core/custom/playercore.lua index f60a107..b0c602c 100644 --- a/lua/entities/gmod_wire_expression2/core/custom/playercore.lua +++ b/lua/entities/gmod_wire_expression2/core/custom/playercore.lua @@ -427,12 +427,6 @@ e2function void sendMessageColor(array arr) printColorArray(self.player, player.GetAll(), arr) end -e2function void sendMessageColor(...) - if not hasAccess(self.player, nil, "globalmessagecolor") then return nil end - - printColorVarArg(self.player, player.GetAll(), typeids, ...) -end - e2function void entity:sendMessageColor(array arr) if not ValidPly(this) then return end if not hasAccess(self.player, this, "messagecolor") then return nil end @@ -440,13 +434,6 @@ e2function void entity:sendMessageColor(array arr) printColorArray(self.player, this, arr) end -e2function void entity:sendMessageColor(...) - if not ValidPly(this) then return end - if not hasAccess(self.player, this, "messagecolor") then return nil end - - printColorVarArg(self.player, this, typeids, ...) -end - e2function void array:sendMessageColor(array arr) if not hasAccess(self.player, nil, "messagecolor") then return end @@ -463,22 +450,6 @@ e2function void array:sendMessageColor(array arr) printColorArray(self.player, plys, arr) end -e2function void array:sendMessageColor(...) - if not hasAccess(self.player, nil, "messagecolor") then return end - - local plys = {} - - for _, ply in pairs(this) do - if ValidPly(ply) then - if hasAccess(self.player, ply, "messagecolor") ~= false then - table.insert(plys, ply) - end - end - end - - printColorVarArg(self.player, plys, typeids, ...) -end - --[[############################################]]