Skip to content

Commit 3b3edb8

Browse files
committed
refactor(BulkOp): remove code that is not used
1 parent 9421116 commit 3b3edb8

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

lib/bulk/common.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ const executeOperation = require('../utils').executeOperation;
1313
const isPromiseLike = require('../utils').isPromiseLike;
1414

1515
// Error codes
16-
const UNKNOWN_ERROR = 8;
17-
const INVALID_BSON_ERROR = 22;
1816
const WRITE_CONCERN_ERROR = 64;
19-
const MULTIPLE_ERROR = 65;
2017

2118
// Insert types
2219
const INSERT = 1;
@@ -1145,20 +1142,8 @@ Object.defineProperty(BulkOperationBase.prototype, 'length', {
11451142
module.exports = {
11461143
Batch,
11471144
BulkOperationBase,
1148-
BulkWriteError,
1149-
BulkWriteResult,
11501145
bson,
1151-
FindOperators,
1152-
handleMongoWriteConcernError,
1153-
LegacyOp,
1154-
mergeBatchResults,
1155-
INVALID_BSON_ERROR: INVALID_BSON_ERROR,
1156-
MULTIPLE_ERROR: MULTIPLE_ERROR,
1157-
UNKNOWN_ERROR: UNKNOWN_ERROR,
1158-
WRITE_CONCERN_ERROR: WRITE_CONCERN_ERROR,
11591146
INSERT: INSERT,
11601147
UPDATE: UPDATE,
1161-
REMOVE: REMOVE,
1162-
WriteError,
1163-
WriteConcernError
1148+
REMOVE: REMOVE
11641149
};

0 commit comments

Comments
 (0)