Permalink
Browse files

remove .clear()

  • Loading branch information...
1 parent cb25d82 commit 2f815b2c5cb9f337c156706c34a610dbf66eb9f7 @dvv dvv committed Dec 7, 2010
Showing with 0 additions and 10 deletions.
  1. +0 −10 lib/mongo.coffee
View
10 lib/mongo.coffee
@@ -131,16 +131,6 @@ class Database
@find collection, query, (error, documents) ->
if documents.length > 0 then next error, documents[0] else next error, null
- # Remove all documents from a collection
- #
- # Takes:
- # collection : collection name
- #
- # Gives:
- # error : error
- clear: (collection, next) ->
- @remove collection, {}, next
-
# Remove documents from a collection matching a query
#
# Takes:

0 comments on commit 2f815b2

Please sign in to comment.