From db8d95dba7df589a59d705b4befe011a98cec187 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 11 Apr 2020 10:59:15 +1000 Subject: [PATCH] Refactoring - delete some unused functions --- .../static/script/inventree/stock.js | 70 +++---------------- 1 file changed, 10 insertions(+), 60 deletions(-) diff --git a/InvenTree/InvenTree/static/script/inventree/stock.js b/InvenTree/InvenTree/static/script/inventree/stock.js index d619ff52ee..1123ecb9a8 100644 --- a/InvenTree/InvenTree/static/script/inventree/stock.js +++ b/InvenTree/InvenTree/static/script/inventree/stock.js @@ -15,52 +15,15 @@ function getStockLocations(filters={}, options={}) { } -function loadStockFilters() { - - return loadTableFilters("stock", "cascade=true"); -} - - -function saveStockFilters(filters) { - // Save the stock table filters to session storage - - saveTableFilters("stock", filters); -} - -function removeStockFilter(key) { - - var filters = loadStockFilters(); - - delete filters[key]; - - saveStockFilters(filters); - - return filters; -} - -function addStockFilter(key, value) { - var filters = loadStockFilters(); - - filters[key] = value; - - saveStockFilters(filters); - - return filters; -} - function createStockFilter() { // TODO console.log("create stock filter"); var html = `