Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove unused code

dominik-zeglen46e15a7002ee
diff --git a/saleor/static/dashboard/js/components/misc.js b/saleor/static/dashboard/js/components/misc.js
index d2964b770d..a353d4caf8 100644
--- a/saleor/static/dashboard/js/components/misc.js
+++ b/saleor/static/dashboard/js/components/misc.js
@@ -1,6 +1,6 @@
import SVGInjector from 'svg-injector-2';
-import { initSelects, removeFromQuery } from './utils';
+import { initSelects } from './utils';
export default $(document).ready((e) => {
new SVGInjector().inject(document.querySelectorAll('svg[data-src]'));
diff --git a/saleor/static/dashboard/js/components/utils.js b/saleor/static/dashboard/js/components/utils.js
index 2d3df6ec6c..2c4661728e 100644
--- a/saleor/static/dashboard/js/components/utils.js
+++ b/saleor/static/dashboard/js/components/utils.js
@@ -1,5 +1,4 @@
import 'select2';
-import queryString from 'query-string';
let supportsPassive = false;
try {
@@ -43,13 +42,3 @@ export function initSelects() {
});
});
}
-
-export function removeFromQuery(name, value) {
- const urlParams = queryString.parse(location.search);
- if (Array.isArray(urlParams[name])) {
- delete urlParams[name][urlParams[name].indexOf(value)];
- } else {
- delete urlParams[name];
- }
- return queryString.stringify(urlParams);
-}