From 77ae270b4e34d56728d2fa7ce225143671e22b6c Mon Sep 17 00:00:00 2001 From: vMajx <26248822+vMajx@users.noreply.github.com> Date: Sun, 19 Jan 2025 15:55:56 +1100 Subject: [PATCH] Removed unused cost variable (#3245) * Removed unused cost variable * Removed unused cost variable for maxIndex --- lua/entities/gmod_wire_expression2/core/table.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/lua/entities/gmod_wire_expression2/core/table.lua b/lua/entities/gmod_wire_expression2/core/table.lua index 16cda1e74c..05fee6ebe9 100644 --- a/lua/entities/gmod_wire_expression2/core/table.lua +++ b/lua/entities/gmod_wire_expression2/core/table.lua @@ -847,7 +847,6 @@ e2function number table:maxIndex() local largest = nil local index = 0 for k,v in pairs( this.n ) do - cost = cost + 1 if (this.ntypes[k] == "n") then if (largest == nil or v > largest) then largest = v @@ -865,7 +864,6 @@ e2function number table:minIndex() local smallest = nil local index = 0 for k,v in pairs( this.n ) do - cost = cost + 1 if (this.ntypes[k] == "n") then if (smallest == nil or v < smallest) then smallest = v