micro optimization, Cut() to len = 0

This commit is contained in:
D3athrow
2015-01-31 00:40:13 -06:00
parent 2cb2453c99
commit 72fde47f91
136 changed files with 196 additions and 192 deletions

View File

@@ -72,7 +72,7 @@
if(chosenlist)
chosenlist.Remove(e)
// Clone of list.Cut()
// Clone of list.len = 0
/proc/n_listcut(var/list/L, var/start, var/end)
if(!istype(L, /list)) return
return L.Cut(start, end)

View File

@@ -20,4 +20,4 @@
return S
Clear()
contents.Cut()
contents.len = 0