From dda49b5ff165a00886ea6f2ae96f90f9b20237ee Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 23 Sep 2019 10:16:32 +0200 Subject: [PATCH] loader.js: Drop redundant method `cacheLoadedIcons` --- public/js/icinga/loader.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 9885de719..468074d2f 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -399,22 +399,6 @@ } }, - cacheLoadedIcons: function($container) { - // TODO: this is just a prototype, disabled for now - return; - - var _this = this; - $('img.icon', $container).each(function(idx, img) { - var src = $(img).attr('src'); - if (typeof _this.iconCache[src] !== 'undefined') { - return; - } - var cache = new Image(); - cache.src = src - _this.iconCache[src] = cache; - }); - }, - /** * Handle successful XHR response */ @@ -578,7 +562,6 @@ if (newBody) { this.icinga.ui.fixDebugVisibility().triggerWindowResize(); } - _this.cacheLoadedIcons(req.$target); }, /**