Commit 0ccf6c48 by Wes Freeman

Removing a bit of unused code.

parent 39bcdd7f
......@@ -62,7 +62,6 @@ varietyCanHaveChildren = function (v) {
v instanceof BinData;
return !specialObject && (isArray || isObject);
}
db.system.js.save( { _id : "varietyCanHaveChildren", value : varietyCanHaveChildren } );
varietyTypeOf = function(thing) {
if (typeof thing === "undefined") { throw "varietyTypeOf() requires an argument"; }
......@@ -100,10 +99,9 @@ varietyTypeOf = function(thing) {
}
}
}
db.system.js.save({_id: "varietyTypeOf", value: varietyTypeOf});
// store results here (no map reduce limit!)
var varietyResults = {};
var countResults = 0;
var addTypeToArray = function(arr, value) {
var t = varietyTypeOf(value);
......@@ -152,7 +150,6 @@ var mapRecursive = function(parentKey, obj, level){
// main cursor
db[collection].find().sort({_id: -1}).limit(limit).forEach(function(obj) {
countResults++;
for (var key in obj) {
if(obj.hasOwnProperty(key)) {
var value = obj[key];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment