Skip to content

Commit

Permalink
Remove some redundant method declarations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Harris committed Jan 16, 2010
1 parent 80cc8f6 commit 31bdf79
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/hamster/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,8 @@ module List

extend Forwardable

def first
head
end
def_delegator :self, :head, :first

def empty?
false
end
def_delegator :self, :empty?, :null?

def size
Expand Down Expand Up @@ -501,6 +496,10 @@ def initialize(head, tail = EmptyList)
@tail = tail
end

def empty?
false
end

end

class Stream
Expand Down

0 comments on commit 31bdf79

Please sign in to comment.