瀏覽代碼

Remove some dead code.

Lee Morgan 5 年之前
父節點
當前提交
b8e130d658
共有 2 個文件被更改,包括 0 次插入16 次删除
  1. 0 8
      views/dashboardPage/bundle.js
  2. 0 8
      views/dashboardPage/js/Merchant.js

+ 0 - 8
views/dashboardPage/bundle.js

@@ -168,14 +168,6 @@ class MerchantIngredient{
         }
     }
 
-    set quantity(quantity){
-        if(quantity < 0){
-            return false;
-        }
-
-        this._quantity = quantity;
-    }
-
     updateQuantity(quantity){
         this._quantity += this.convertToBase(quantity);
     }

+ 0 - 8
views/dashboardPage/js/Merchant.js

@@ -41,14 +41,6 @@ class MerchantIngredient{
         }
     }
 
-    set quantity(quantity){
-        if(quantity < 0){
-            return false;
-        }
-
-        this._quantity = quantity;
-    }
-
     updateQuantity(quantity){
         this._quantity += this.convertToBase(quantity);
     }