Skip to content

Commit 7be8994

Browse files
committed
removed redundant code
1 parent 4f8becb commit 7be8994

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Ordered Set/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ Lets take a look at the insert function first. The insert function first checks
5151
if exists(item) {
5252
return // don't add an item if it already exists
5353
}
54-
// if the set is initially empty, we need to simply append the item to internalSet
55-
if count == 0 {
56-
internalSet.append(item)
57-
return
58-
}
5954

6055
for i in 0..<count {
6156
if internalSet[i] > item {

0 commit comments

Comments
 (0)