Skip to content

Commit 110fb95

Browse files
authored
Remove garbage
Removed operators that have default equivalents in the compiler now (Not "is" yet though apparently. Ugh.)
1 parent 14a2832 commit 110fb95

1 file changed

Lines changed: 2 additions & 23 deletions

File tree

lua/entities/gmod_wire_expression2/core/custom/webaudio.lua

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -101,28 +101,7 @@ end)
101101

102102
--#region operators
103103

104-
__e2setcost(1)
105-
registerOperator("ass", "xwa", "xwa", function(self, args)
106-
local op1, op2, scope = args[2], args[3], args[4]
107-
local rv2 = op2[1](self, op2)
108-
self.Scopes[scope][op1] = rv2
109-
self.Scopes[scope].vclk[op1] = true
110-
return rv2
111-
end)
112-
113-
registerOperator("eq", "xwaxwa", "n", function(self, args) -- if(Wa == Wa)
114-
local op1, op2 = args[2], args[3]
115-
local v1, v2 = op1[1](self, op1), op2[1](self, op2)
116-
if v1 == v2 then return 1 else return 0 end
117-
end)
118-
119-
registerOperator("neq", "xwaxwa", "n", function(self, args) -- if(Wa != Wa)
120-
local op1, op2 = args[2], args[3]
121-
local v1, v2 = op1[1](self, op1), op2[1](self, op2)
122-
if v1 ~= v2 then return 1 else return 0 end
123-
end)
124-
125-
registerOperator("is", "xpng", "n", function(self, args) -- if(Wa)
104+
registerOperator("is", "xwa", "n", function(self, args) -- if(Wa)
126105
local op1 = args[2]
127106

128107
--- @type WebAudio
@@ -1023,4 +1002,4 @@ registerCallback("destruct", function(self)
10231002
end
10241003
end)
10251004

1026-
--#endregion cleanup
1005+
--#endregion cleanup

0 commit comments

Comments
 (0)