Skip to content

Commit

Permalink
Removed old names of internal methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed May 10, 2019
1 parent a7b68e6 commit dbcc224
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/ostruct.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,6 @@ def modifiable? # :nodoc:
end
private :modifiable?

# ::Kernel.warn("do not use OpenStruct#modifiable", uplevel: 1)
alias modifiable modifiable? # :nodoc:
protected :modifiable

#
# Used internally to defined properties on the
# OpenStruct. It does this by using the metaprogramming function
Expand All @@ -195,10 +191,6 @@ def new_ostruct_member!(name) # :nodoc:
end
private :new_ostruct_member!

# ::Kernel.warn("do not use OpenStruct#new_ostruct_member", uplevel: 1)
alias new_ostruct_member new_ostruct_member! # :nodoc:
protected :new_ostruct_member

def freeze
@table.each_key {|key| new_ostruct_member!(key)}
super
Expand Down

0 comments on commit dbcc224

Please sign in to comment.