Permalink
Browse files

Remove unused variables and helper functions

  • Loading branch information...
1 parent 830420a commit 35fbc5e0726bae16f0ce43cc7eb94e821de816c8 @tricknotes tricknotes committed Mar 18, 2013
Showing with 3 additions and 17 deletions.
  1. +1 −1 packages/ember-data/lib/system/model/model.js
  2. +2 −16 packages/ember-data/lib/system/model/states.js
@@ -3,7 +3,7 @@ require("ember-data/system/mixins/load_promise");
var LoadPromise = DS.LoadPromise; // system/mixins/load_promise
-var get = Ember.get, set = Ember.set, none = Ember.isNone, map = Ember.EnumerableUtils.map;
+var get = Ember.get, set = Ember.set, map = Ember.EnumerableUtils.map;
var retrieveFromCurrentState = Ember.computed(function(key, value) {
if (arguments.length > 1) {
@@ -1,4 +1,4 @@
-var get = Ember.get, set = Ember.set, guidFor = Ember.guidFor,
+var get = Ember.get, set = Ember.set,
once = Ember.run.once, arrayMap = Ember.ArrayPolyfills.map;
/**
@@ -159,14 +159,6 @@ var stateProperty = Ember.computed(function(key) {
}
}).property();
-var isEmptyObject = function(object) {
- for (var name in object) {
- if (object.hasOwnProperty(name)) { return false; }
- }
-
- return true;
-};
-
var hasDefinedProperties = function(object) {
for (var name in object) {
if (object.hasOwnProperty(name) && object[name]) { return true; }
@@ -193,12 +185,6 @@ var didSetProperty = function(manager, context) {
change.sync();
};
-// Whenever a property is set, recompute all dependent filters
-var updateRecordArrays = function(manager) {
- var record = manager.get('record');
- record.updateRecordArraysLater();
-};
-
DS.State = Ember.State.extend({
isLoaded: stateProperty,
isReloading: stateProperty,
@@ -543,7 +529,7 @@ var states = {
exit: function(manager) {
var record = get(manager, 'record');
- Ember.run.once(function() {
+ once(function() {
record.trigger('didLoad');
});
}

0 comments on commit 35fbc5e

Please sign in to comment.