Skip to content

Commit 07176bd

Browse files
committed
TimeStack#compare is the default comparison already
1 parent 1404e3f commit 07176bd

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

skiplang/prelude/src/skstore/Context.sk

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -268,16 +268,6 @@ class TimeStack private (
268268
!this.values = this.values.map(x -> -x);
269269
this
270270
}
271-
272-
fun compare(other: TimeStack): Order {
273-
for (i in Range(0, this.values.size())) {
274-
if (i >= other.values.size()) return GT();
275-
cmp = this.values[i].compare(other.values[i]);
276-
if (cmp != EQ()) return cmp;
277-
};
278-
if (other.values.size() > this.values.size()) return LT();
279-
EQ()
280-
}
281271
}
282272

283273
/*****************************************************************************/

0 commit comments

Comments
 (0)