diff --git a/adapters/dm-couchdb-adapter/lib/couchdb_adapter.rb b/adapters/dm-couchdb-adapter/lib/couchdb_adapter.rb index 8b3d8e08..104f87b7 100644 --- a/adapters/dm-couchdb-adapter/lib/couchdb_adapter.rb +++ b/adapters/dm-couchdb-adapter/lib/couchdb_adapter.rb @@ -160,28 +160,6 @@ def read_one(query) end protected - # Converts the URI's scheme into a parsed HTTP identifier. - def normalize_uri(uri_or_options) - if String === uri_or_options - uri_or_options = Addressable::URI.parse(uri_or_options) - end - if Addressable::URI === uri_or_options - return uri_or_options.normalize - end - - user = uri_or_options.delete(:username) - password = uri_or_options.delete(:password) - host = (uri_or_options.delete(:host) || "") - port = uri_or_options.delete(:port) - database = uri_or_options.delete(:database) - query = uri_or_options.to_a.map { |pair| pair.join('=') }.join('&') - query = nil if query == "" - - return Addressable::URI.new( - "http", user, password, host, port, database, query, nil - ) - end - def build_request(query) if query.view view_request(query)