EJSON: Remove serializeForEval method, no longer needed with new selector

compiler.
This commit is contained in:
David Glasser
2013-02-04 17:47:06 -08:00
parent eaff6f3b00
commit 4c2bc76c7e
2 changed files with 0 additions and 7 deletions

View File

@@ -10,8 +10,6 @@ var customTypes = {};
// - A equals() method, so that Meteor can compare it
// - A toJSONValue() method, so that Meteor can serialize it
// - a typeName() method, to show how to look it up in our type table.
// XXX GOING AWAY
// - A serializeForEval() method, so that Meteor can compile it into selectors.
// It is okay if these methods are monkey-patched on.
EJSON.addType = function (name, factory) {
if (_.has(customTypes, name))

View File

@@ -52,11 +52,6 @@ LocalCollection._ObjectID.prototype.valueOf =
LocalCollection._ObjectID.prototype.toHexString =
function () { return this._str; };
LocalCollection._ObjectID.prototype.serializeForEval = function () {
var self = this;
return "new LocalCollection._ObjectID(\"" + self._str + "\")";
};
// Is this selector just shorthand for lookup by _id?
LocalCollection._selectorIsId = function (selector) {
return (typeof selector === "string") ||