Permalink
Browse files

Merge branch 'master' into cursorReworkingToAvoidNextTick

  • Loading branch information...
2 parents 61486ad + 9f2c0a9 commit 01f3ca61fe3d5847f6a2b94d44335009f134f3e9 @christkv christkv committed Jan 14, 2013
Showing with 0 additions and 20 deletions.
  1. +0 −20 lib/mongodb/gridfs/gridstore.js
@@ -83,26 +83,6 @@ var GridStore = function GridStore(db, id, filename, mode, options) {
this.filename = filename;
}
- /*
- // Handle id
- if(id instanceof ObjectID && (typeof filename == 'string' || filename == null)) {
- this.referenceBy = REFERENCE_BY_ID;
- this.fileId = id;
- this.filename = filename;
- } else if(!(id instanceof ObjectID) && typeof id == 'string' && mode.indexOf("w") != null) {
- this.referenceBy = REFERENCE_BY_FILENAME;
- this.fileId = new ObjectID();
- this.filename = id;
- } else if(!(id instanceof ObjectID) && typeof id == 'string' && mode.indexOf("r") != null) {
- this.referenceBy = REFERENCE_BY_FILENAME;
- this.filename = id;
- } else {
- this.referenceBy = REFERENCE_BY_ID;
- this.fileId = id;
- this.filename = filename;
- }
- */
-
// Set up the rest
this.mode = mode == null ? "r" : mode;
this.options = options == null ? {} : options;

0 comments on commit 01f3ca6

Please sign in to comment.