From 4c2bc76c7ecaef8ba1b30d137bf1aaa94a3395cf Mon Sep 17 00:00:00 2001 From: David Glasser Date: Mon, 4 Feb 2013 17:47:06 -0800 Subject: [PATCH] EJSON: Remove serializeForEval method, no longer needed with new selector compiler. --- packages/ejson/ejson.js | 2 -- packages/minimongo/objectid.js | 5 ----- 2 files changed, 7 deletions(-) diff --git a/packages/ejson/ejson.js b/packages/ejson/ejson.js index 5798d9a5e4..29777e847b 100644 --- a/packages/ejson/ejson.js +++ b/packages/ejson/ejson.js @@ -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)) diff --git a/packages/minimongo/objectid.js b/packages/minimongo/objectid.js index 6e0679bcc6..60fd181a7c 100644 --- a/packages/minimongo/objectid.js +++ b/packages/minimongo/objectid.js @@ -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") ||