Skip to content

Commit 0ce671e

Browse files
committed
Improve std::stack performance
1 parent a1e41dc commit 0ce671e

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

std/stack.rave

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ namespace std {
4747
STACK_T pop {
4848
if (this.length == 0) @return(null);
4949
return = this.top();
50-
51-
for (usize i=(this.length - 1); i<this.length; i++) {
52-
if ((i + 1) < this.length) this.data[i] = this.data[i + 1];
53-
}
54-
5550
this.length -= 1;
5651
}
5752

0 commit comments

Comments
 (0)