Removes unused properties from optimization wrapper.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Wed, 15 Apr 2015 07:38:20 +0000 (08:38 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Wed, 15 Apr 2015 07:38:20 +0000 (08:38 +0100)
lib/properties/wrap-for-optimizing.js
test/properties/wrap-for-optimizing-test.js

index 265043a..650521f 100644 (file)
@@ -29,11 +29,9 @@ function wrapSingle(property) {
     dirty: false,
     hack: property[0][2],
     important: property[0][1],
-    irrelevant: false,
     name: property[0][0],
     multiplex: property.length > 2 ? isMultiplex(property) : false,
     position: 0,
-    real: true,
     shorthand: false,
     unused: property.length < 2,
     value: property.slice(1)
index 9a16af7..810b5c7 100644 (file)
@@ -30,12 +30,6 @@ vows.describe(wrapForOptimizing)
       'is not a shorthand': function (wrapped) {
         assert.isFalse(wrapped[0].shorthand);
       },
-      'is not irrelevant': function (wrapped) {
-        assert.isFalse(wrapped[0].irrelevant);
-      },
-      'is real': function (wrapped) {
-        assert.isTrue(wrapped[0].real);
-      },
       'is unused': function (wrapped) {
         assert.isFalse(wrapped[0].unused);
       },