Remove obsolete 'move' methods

This commit is contained in:
Brian Candler 2009-03-27 11:50:42 +00:00
parent aabf097e88
commit af6ac7df89
2 changed files with 0 additions and 15 deletions

View file

@ -65,15 +65,6 @@ module CouchRest
result['ok'] result['ok']
end end
# moves the document to a new id. If the destination id currently exists, a rev must be provided.
# <tt>dest</tt> can take one of two forms if overwriting: "id_to_overwrite?rev=revision" or the actual doc
# hash with a '_rev' key
def move(dest)
raise ArgumentError, "doc.database required to copy" unless database
result = database.move_doc(self, dest)
result['ok']
end
# Returns the CouchDB uri for the document # Returns the CouchDB uri for the document
def uri(append_rev = false) def uri(append_rev = false)
return nil if new_document? return nil if new_document?

View file

@ -57,12 +57,6 @@ module RestClient
:headers => headers) :headers => headers)
end end
def self.move(url, headers={})
Request.execute(:method => :move,
:url => url,
:headers => headers)
end
# class Request # class Request
# #
# def establish_connection(uri) # def establish_connection(uri)