Skip to content

Commit

Permalink
remove unused fastSet and fastGet functions from ArrayRepr.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Mar 12, 2012
1 parent 3f70744 commit ac39369
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions js/ArrayRepr.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,6 @@ ArrayRepr.prototype.get = function(obj, attr) {
}
};

ArrayRepr.prototype.fastGet = function(obj, attr) {
// can be used only if attr is guaranteed to be in
// the "classes" array for this object
return obj[self.fields[obj[0]][attr]];
};

ArrayRepr.prototype.set = function(obj, attr, val) {
if (attr in this.fields[obj[0]]) {
obj[this.fields[obj[0]][attr]] = val;
Expand All @@ -126,12 +120,6 @@ ArrayRepr.prototype.set = function(obj, attr, val) {
}
};

ArrayRepr.prototype.fastSet = function(obj, attr, val) {
// can be used only if attr is guaranteed to be in
// the "classes" array for this object
obj[this.fields[obj[0]][attr]] = val;
};

ArrayRepr.prototype.makeSetter = function(attr) {
var self = this;
return function(obj, val) { self.set(obj, attr, val); };
Expand Down

0 comments on commit ac39369

Please sign in to comment.