瀏覽代碼

Remove quantity setter from MerchantIngredient class.

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

+ 0 - 4
views/dashboardPage/bundle.js

@@ -168,10 +168,6 @@ class MerchantIngredient{
         }
     }
 
-    set quantity(quantity){
-        this._quantity = quantity;
-    }
-
     updateQuantity(quantity){
         this._quantity += this.convertToBase(quantity);
     }

+ 0 - 4
views/dashboardPage/js/classes/Merchant.js

@@ -41,10 +41,6 @@ class MerchantIngredient{
         }
     }
 
-    set quantity(quantity){
-        this._quantity = quantity;
-    }
-
     updateQuantity(quantity){
         this._quantity += this.convertToBase(quantity);
     }