Module: check_mk
Branch: master
Commit: 1aaaca61e6ae56f57207b1630896ad1b96cceee7
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1aaaca61e6ae56…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jan 17 21:49:44 2019 +0100
Removed unused wato.extra_buttons
Change-Id: I2ac2d9ba19b1db65535b7cbae2e637e74c526688
---
cmk/gui/wato/__init__.py | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/cmk/gui/wato/__init__.py b/cmk/gui/wato/__init__.py
index 5f8e87c..87319ee 100644
--- a/cmk/gui/wato/__init__.py
+++ b/cmk/gui/wato/__init__.py
@@ -520,17 +520,6 @@ def _wato_page_handler(current_mode, mode_permissions, mode_class):
# Show contexts buttons
html.begin_context_buttons()
mode.buttons()
- for inmode, buttontext, target in extra_buttons:
- if inmode == current_mode:
- if hasattr(target, '__call__'):
- target = target()
- if not target:
- continue
- if target[0] == '/' or target.startswith('../') or '://' in target:
- html.context_button(buttontext, target)
- else:
- html.context_button(buttontext,
- watolib.folder_preserving_link([("mode", target)]))
html.end_context_buttons()
if not html.is_transaction() or (cmk.gui.watolib.read_only.is_enabled() and
@@ -893,8 +882,6 @@ def save_network_scan_result(folder, result):
# '----------------------------------------------------------------------'
modes = {}
-# TODO: Drop this and probably replace with a hook at button rendering?
-extra_buttons = []
loaded_with_language = False
@@ -904,9 +891,6 @@ def load_plugins(force):
if loaded_with_language == cmk.gui.i18n.get_current_language() and not force:
return
- # Reset global vars
- del extra_buttons[:]
-
# Initialize watolib things which are needed before loading the WATO plugins.
# This also loads the watolib plugins.
watolib.load_watolib_plugins()