From 1d9fa2a42e2cad9ea76ad22edf8919942c853be1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 6 Mar 2021 22:41:46 +0300 Subject: reduce overhead in hash set/get --- js/tt-rss.js | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'js/tt-rss.js') diff --git a/js/tt-rss.js b/js/tt-rss.js index 4a7f2e643..10fafc447 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -69,15 +69,3 @@ require(["dojo/_base/kernel", }); }); -/* exported hash_get */ -function hash_get(key) { - const obj = dojo.queryToObject(window.location.hash.substring(1)); - return obj[key]; -} - -/* exported hash_set */ -function hash_set(key, value) { - const obj = dojo.queryToObject(window.location.hash.substring(1)); - obj[key] = value; - window.location.hash = dojo.objectToQuery(obj); -} -- cgit v1.2.3