[JAVA-1430] DBCollection unused code Created: 05/Sep/14  Updated: 30/Jan/15  Resolved: 07/Oct/14

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 3.0.0

Type: Task Priority: Major - P3
Reporter: Trisha Gee Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The DBCollection methods

  • getDocumentCodec
  • getOptionHolder

Are package-private and unused - should they be deleted?

The getCount method getCount(DBObject, DBObject, long, long, ReadPreference, long, TimeUnit, BsonValue) has an unused parameter, DBObject projection. Since this method is package-level, and even the javadoc says it's ignored, this could be deleted.

The field NAMESPACE_KEY_NAME is never used, and private, and can be deleted.



 Comments   
Comment by Githook User [ 30/Jan/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: Removed unused non-public field/methods in DBCollection

JAVA-1430
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/b7a1e2a2a3110b55709aceb6d1cd8a095cca48d0

Comment by Githook User [ 07/Oct/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: Removed unused non-public field/methods in DBCollection

JAVA-1430
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/b7a1e2a2a3110b55709aceb6d1cd8a095cca48d0

Generated at Thu Feb 08 08:54:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.