Skip to content

Commit

Permalink
Remove legacy namespace accessors from base class.
Browse files Browse the repository at this point in the history
  • Loading branch information
evan committed Jul 22, 2013
1 parent e6d4fc0 commit 84c2163
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/memcached/memcached.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@ def initialize(servers = nil, opts = {})
options[:rcv_timeout] ||= options[:timeout]
options[:poll_timeout] ||= options[:timeout]

# Set the prefix key. Support the legacy name.
set_prefix_key(options[:prefix_key] || options[:namespace])

# Set the behaviors and credentials on the struct
set_behaviors
set_credentials
Expand Down Expand Up @@ -221,7 +218,6 @@ def set_prefix_key(key)
end
)
end
alias :set_namespace :set_prefix_key

# Return the current prefix key.
def prefix_key
Expand All @@ -231,7 +227,6 @@ def prefix_key
""
end
end
alias :namespace :prefix_key

# Safely copy this instance. Returns a Memcached instance.
#
Expand Down

0 comments on commit 84c2163

Please sign in to comment.