Skip to content

Commit

Permalink
Dead code elimination.
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-steadman committed Jun 8, 2012
1 parent cf99281 commit 8825f41
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/registry/transcoder/base.rb
Expand Up @@ -19,15 +19,6 @@ def self.from_db(string)
return string
end

# Try to convert a String from the database to a ruby range.
def self.from_db_range(value)
eval(value)
rescue SyntaxError => ex
return value unless ex.message =~ /octal/ # conversion failed, just return value
from, range, to = value.match(/(.*)\s*(\.\.\.?)\s*(.*)/).to_a[1 .. -1]
eval("#{from.to_i} #{range} #{to.to_i}")
end

def self.transcoders
@transcoders ||= []
end
Expand Down

0 comments on commit 8825f41

Please sign in to comment.