Skip to content

Commit

Permalink
Don't need Network#decrement
Browse files Browse the repository at this point in the history
  • Loading branch information
sstephenson committed Apr 12, 2009
1 parent 671f6c6 commit 656ed7b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/minihal/network.rb
Expand Up @@ -16,14 +16,6 @@ def increment(value)
end
end

def decrement(value)
if (@weights[value] -= 1).zero?
@weights.delete(value)
else
@weights[value] -= 1
end
end

def values
@weights.values
end
Expand Down

0 comments on commit 656ed7b

Please sign in to comment.