From d6111f535c304675b4f97ece47e43208aebcc178 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Tue, 23 Feb 2010 13:09:36 -0500 Subject: [PATCH] removed deprecated Cursor#next_object --- lib/mongo/cursor.rb | 6 ------ test/cursor_test.rb | 7 ------- 2 files changed, 13 deletions(-) diff --git a/lib/mongo/cursor.rb b/lib/mongo/cursor.rb index 0d66bb8..6af0add 100644 --- a/lib/mongo/cursor.rb +++ b/lib/mongo/cursor.rb @@ -78,12 +78,6 @@ module Mongo doc end - # @deprecated use Cursor#next_document instead. - def next_object - warn "Cursor#next_object is deprecated; please use Cursor#next_document instead." - next_document - end - # Get the size of the result set for this query. # # @return [Integer] the number of objects in the result set for this query. Does diff --git a/test/cursor_test.rb b/test/cursor_test.rb index fd55543..9bc763b 100644 --- a/test/cursor_test.rb +++ b/test/cursor_test.rb @@ -54,13 +54,6 @@ class CursorTest < Test::Unit::TestCase assert_equal 0, @@db['acollectionthatdoesn'].count() end - def test_next_object_deprecation - @@coll.remove - @@coll.insert({"a" => 1}) - - assert_equal 1, @@coll.find().next_object["a"] - end - def test_sort @@coll.remove 5.times{|x| @@coll.insert({"age" => x}) }