Skip to content

Commit c39a641

Browse files
chore: delete commented-out code
1 parent 29837ed commit c39a641

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

benchmarks/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ function run(label, fn) {
7575
res.heapUsed = used.heapUsed - started.heapUsed;
7676
log('change: ', res);
7777
a = res = used = time = started = start = total = i = null;
78-
// console.error(((used.vsize - started.vsize) / 1048576)+' MB');
7978
}
8079

8180
run('string', function() {

benchmarks/validate.js

+1-20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// require('nodetime').profile();
2-
31
'use strict';
42

53
const mongoose = require('../../mongoose');
@@ -25,8 +23,7 @@ const breakfastSchema = new Schema({
2523
}
2624
});
2725
const Breakfast = mongoose.model('Breakfast', breakfastSchema);
28-
// const time1 = (new Date - start1);
29-
// console.error('reading from disk and parsing JSON took %d ms', time1);
26+
3027
const badBreakfast = new Breakfast({
3128
eggs: 2,
3229
bacon: 0,
@@ -38,23 +35,7 @@ const goodBreakfast = new Breakfast({
3835
bacon: 1,
3936
drink: 'Tea'
4037
})
41-
// const start = new Date;
42-
// const total = 10000000;
43-
// let i = total;
44-
// let len;
45-
46-
// for (i = 0, len = total; i < len; ++i) {
47-
48-
// const goodBreakfast = new Breakfast({
49-
// eggs: 6,
50-
// bacon: 1,
51-
// drink: 'Tea'
52-
// })
53-
// goodBreakfast.validateSync();
54-
// }
5538

56-
// const time = (new Date - start) / 1000;
57-
// console.error('took %d seconds for %d docs (%d dps)', time, total, total / time);
5839
const suite = new Benchmark.Suite()
5940
suite
6041
.add('invalid async', {

lib/helpers/query/castFilterPath.js

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ module.exports = function castFilterPath(query, schematype, val) {
4141
}
4242
continue;
4343
}
44-
// cast(schematype.caster ? schematype.caster.schema : schema, nested, options, context);
4544
} else {
4645
val[$cond] = schematype.castForQueryWrapper({
4746
$conditional: $cond,

0 commit comments

Comments
 (0)