Skip to content

Commit

Permalink
Merge pull request #107 from gabrielelana/remove-initialize-copy
Browse files Browse the repository at this point in the history
Remove never used initialize_copy method
  • Loading branch information
njonsson committed Feb 18, 2014
2 parents f257cdd + d676e49 commit de37ce9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
7 changes: 0 additions & 7 deletions lib/htty/ordered_hash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ def initialize(hash={})
end
end

# @private
def initialize_copy(source)
super
@inner_hash = @inner_hash.dup
@inner_keys = @inner_keys.dup
end

def [](key)
@inner_hash[key]
end
Expand Down
7 changes: 0 additions & 7 deletions lib/htty/payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,4 @@ def initialize(attributes={})
end
end

# @private
def initialize_copy(source)
super
@body = @body.dup if @body
@headers = @headers.dup
end

end
7 changes: 0 additions & 7 deletions lib/htty/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,6 @@ def initialize(address)
establish_content_length
end

# @private
def initialize_copy(source)
super
@response = @response.dup if @response
@uri = @uri.dup
end

# Returns +true+ if _other_request_ is equivalent to the request.
def ==(other_request)
return false unless super(other_request)
Expand Down

0 comments on commit de37ce9

Please sign in to comment.