From ec4e2c71933a491dcd2564b49153ebf859312ee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 15 Sep 2020 16:04:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20PMGR:=20Get=20rid=20of=20unused?= =?UTF-8?q?=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugins/pluginmanager/static/js/pluginmanager.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js b/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js index e4b3a07de..eedafd807 100644 --- a/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js +++ b/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js @@ -198,7 +198,6 @@ $(function() { self.restartCommandSpec = restartSpec != undefined && restartSpec.length > 0 ? restartSpec[0] : undefined; }); - self.notifications = []; self.noticeNotifications = []; self.hiddenNoticeNotifications = {}; self.noticeCount = ko.observable(0); @@ -1263,11 +1262,6 @@ $(function() { if (self.logNotification) { self.logNotification.remove(); } - if (self.notifications) { - _.each(self.notifications, function(notification) { - notification.remove(); - }); - } }; self.onServerDisconnect = function() {