Permalink
Browse files

Remove unused constructor HStore#new(hash) and remove some trailing w…

…hitespace
  • Loading branch information...
1 parent 4c8c5a5 commit 0570cdf4dc4ab567f4e38a62339732bbd130b12d @esad esad committed Jan 30, 2012
Showing with 2 additions and 7 deletions.
  1. +1 −5 lib/hstore/hstore.rb
  2. +1 −2 lib/sequel-hstore.rb
View
@@ -18,7 +18,7 @@ def self.parse_quotable_string(scanner)
end
def self.skip_key_value_delimiter(scanner)
- scanner.skip(/\s*=>\s*/)
+ scanner.skip(/\s*=>\s*/)
end
def self.skip_pair_delimiter(scanner)
@@ -44,10 +44,6 @@ def self.new_from_string(string)
self[hash]
end
- def initialize(hash)
- @hash = hash
- end
-
def to_s_escaped(str)
str.to_s.gsub(/\\(?!")/) {'\\\\'}.gsub(/"/, '\"').gsub(/'/, "''")
end
View
@@ -14,5 +14,4 @@ def self.===(other)
end
end
-Sequel::Postgres::PG_NAMED_TYPES[:hstore] = lambda{|s| Sequel::Postgres::HStore.new_from_string(s) }
-
+Sequel::Postgres::PG_NAMED_TYPES[:hstore] = lambda{|s| Sequel::Postgres::HStore.new_from_string(s) }

0 comments on commit 0570cdf

Please sign in to comment.