Skip to content

Commit

Permalink
removed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
zainh96 committed Mar 26, 2016
1 parent 4f8becb commit 7be8994
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Ordered Set/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ Lets take a look at the insert function first. The insert function first checks
if exists(item) {
return // don't add an item if it already exists
}
// if the set is initially empty, we need to simply append the item to internalSet
if count == 0 {
internalSet.append(item)
return
}

for i in 0..<count {
if internalSet[i] > item {
Expand Down

0 comments on commit 7be8994

Please sign in to comment.