Skip to content

Commit

Permalink
Removed unused cost variable (#3245)
Browse files Browse the repository at this point in the history
* Removed unused cost variable

* Removed unused cost variable for maxIndex
  • Loading branch information
vMajx authored Jan 19, 2025
1 parent 16d6d43 commit 77ae270
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lua/entities/gmod_wire_expression2/core/table.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 77ae270

Please sign in to comment.