From: Mike Taylor Date: Mon, 19 Jan 2015 12:35:05 +0000 (+0000) Subject: Clean-up for MKWS-352 work. X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=e5e7256118b179dde76089be0794fea4d4e3f845;p=mkws-moved-to-github.git Clean-up for MKWS-352 work. Rip out private m_targetMap members, mapTarget() and targetName() functions. --- diff --git a/src/mkws-team.js b/src/mkws-team.js index d5f8bc0..c26d2c3 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -33,7 +33,6 @@ mkws.makeTeam = function($, teamName) { var m_template = {}; // compiled templates, from any source var m_widgets = {}; // Maps widget-type to array of widget objects var m_gotRecords = false; - var m_targetMap = {}; // Maps target ID to human-readable name var config = mkws.objectInheritingFrom(mkws.config); that.config = config; @@ -502,17 +501,5 @@ mkws.makeTeam = function($, teamName) { return undefined; }; - that.mapTarget = function(id, name) { - var old = m_targetMap[id]; - m_targetMap[id] = name; - if (old && name !== old) { - that.warn("targetMap for id '" + id + "' changed from '" + old + "' to '" + name + "'"); - } - }; - - that.targetName = function(id) { - return m_targetMap[id] || id; - } - return that; };