From c82b61ffc9b0c0b1b8870697c7a3171e2d1874ec Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Wed, 24 Feb 2010 13:40:04 -0500 Subject: [PATCH] remove deprecated methods DB#admin and DB#db_command --- lib/mongo/db.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/mongo/db.rb b/lib/mongo/db.rb index b79a096..99fd198 100644 --- a/lib/mongo/db.rb +++ b/lib/mongo/db.rb @@ -206,12 +206,6 @@ module Mongo raise MongoDBError, "Error creating collection: #{doc.inspect}" end - # @deprecated all the admin methods are now included in the DB class. - def admin - warn "DB#admin has been DEPRECATED. All the admin functions are now available in the DB class itself." - Admin.new(self) - end - # Get a collection by name. # # @param [String] name the collection name. @@ -440,12 +434,6 @@ module Mongo end end - # @deprecated please use DB#command instead. - def db_command(*args) - warn "DB#db_command has been DEPRECATED. Please use DB#command instead." - command(args[0], args[1]) - end - # A shortcut returning db plus dot plus collection name. # # @param [String] collection_name