From bd4b6060f73fe0f209d81816d1514e8d1b491720 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Mon, 4 Oct 2010 12:16:40 -0400 Subject: [PATCH] Removed deprecated DB methods --- lib/mongo/db.rb | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/lib/mongo/db.rb b/lib/mongo/db.rb index 4760681..12e60ce 100644 --- a/lib/mongo/db.rb +++ b/lib/mongo/db.rb @@ -276,23 +276,6 @@ module Mongo ok?(command(:drop => name)) end - # @deprecated - # - # Get the error message from the most recently executed database - # operation for this connection. - # - # @option opts [Boolean] :fsync (false) - # @option opts [Integer] :w (nil) - # @option opts [Integer] :wtimeout (nil) - # - # @return [String, Nil] either the text describing an error or nil if no - # error has occurred. - def error(opts={}) - warn "DB#error is deprecated. Please use DB#get_last_error instead" - opts.assert_valid_keys(:w, :wtimeout, :fsync) - get_last_error(opts)['err'] - end - # Run the getlasterror command with the specified replication options. # # @option opts [Boolean] :fsync (false) @@ -311,16 +294,6 @@ module Mongo doc end - # @deprecated - # - # Get status information from the last operation on this connection. - # - # @return [Hash] a hash representing the status of the last db op. - def last_status - warn "DB#last_status is deprecated. Please use the equivalent DB#get_last_error instead" - command(:getlasterror => 1) - end - # Return +true+ if an error was caused by the most recently executed # database operation. #