From 0da5c3a2d6be4c0800ecf1b8a742c4ca2ec5d45d Mon Sep 17 00:00:00 2001 From: Muhammet Kara Date: Tue, 6 Oct 2020 12:43:59 +0300 Subject: [PATCH] Remove unused function setHelpTarget() Change-Id: I9f3338c79de627befc5eac71f2418f1014b08eeb --- loleaflet/src/control/Control.Menubar.js | 17 ----------------- loleaflet/src/map/Map.js | 5 ----- 2 files changed, 22 deletions(-) diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js index f851271f4..2f040f9b1 100644 --- a/loleaflet/src/control/Control.Menubar.js +++ b/loleaflet/src/control/Control.Menubar.js @@ -1331,23 +1331,6 @@ L.Control.Menubar = L.Control.extend({ self._map.focus(); }, - _onMouseEnter: function(e, item) { - var self = e.data.self; - var type = $(item).data('type'); - if (type === 'unocommand') { - var unoCommand = $(item).data('uno'); - self._map.setHelpTarget(unoCommand); - } else if (type === 'action') { - var id = $(item).data('id'); - self._map.setHelpTarget('modules/online/menu/' + id); - } - }, - - _onMouseLeave: function(e) { - var self = e.data.self; - self._map.setHelpTarget(null); - }, - _onKeyDown: function(e) { var self = e.data.self; diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js index f56de1394..06654a62c 100644 --- a/loleaflet/src/map/Map.js +++ b/loleaflet/src/map/Map.js @@ -113,7 +113,6 @@ L.Map = L.Evented.extend({ this._debugAlwaysActive = false; // disables the dimming / document inactivity when true this._serverRecycling = false; this._documentIdle = false; - this._helpTarget = null; // help page that fits best the current context this._disableDefaultAction = {}; // The events for which the default handler is disabled and only issues postMessage. this.showSidebar = false; @@ -1047,10 +1046,6 @@ L.Map = L.Evented.extend({ return this._textInput.canAcceptKeyboardInput(); }, - setHelpTarget: function(page) { - this._helpTarget = page; - }, - isSearching: function() { return this._isSearching; },