From af470b42a853150a42e2a3e008090c60e7801d47 Mon Sep 17 00:00:00 2001 From: Andreas Botsikas Date: Fri, 12 Apr 2013 22:30:22 +0300 Subject: [PATCH] Removed duplicate code --- webinos/core/wrt/lib/webinos.session.js | 52 +++++-------------------- 1 file changed, 10 insertions(+), 42 deletions(-) diff --git a/webinos/core/wrt/lib/webinos.session.js b/webinos/core/wrt/lib/webinos.session.js index 352f301b..d5c01412 100644 --- a/webinos/core/wrt/lib/webinos.session.js +++ b/webinos/core/wrt/lib/webinos.session.js @@ -68,48 +68,16 @@ channel.send(JSON.stringify(message)); } }; - webinos.session.setServiceLocation = function (loc) { - serviceLocation = loc; - }; - webinos.session.getServiceLocation = function () { - if (typeof serviceLocation !== "undefined") { - return serviceLocation; - } else { - return pzpId; - } - }; - webinos.session.getSessionId = function () { - return sessionId; - }; - webinos.session.getPZPId = function () { - return pzpId; - }; - webinos.session.getPZHId = function () { - return ( pzhId || ""); - }; - webinos.session.getOtherPZP = function () { - return (otherPzp || []); - }; - webinos.session.getOtherPZH = function () { - return (otherPzh || []); - }; - webinos.session.addListener = function (statusType, listener) { - var listeners = listenerMap[statusType] || []; - listeners.push (listener); - listenerMap[statusType] = listeners; - return listeners.length; - }; - webinos.session.removeListener = function (statusType, id) { - var listeners = listenerMap[statusType] || []; - try { - listeners[id - 1] = undefined; - } catch (e) { - } - }; - webinos.session.isConnected = function () { - return isConnected; - }; - + webinos.session.setServiceLocation = function (loc) { + serviceLocation = loc; + }; + webinos.session.getServiceLocation = function () { + if (typeof serviceLocation !== "undefined") { + return serviceLocation; + } else { + return pzpId; + } + }; webinos.session.getSessionId = function() { return sessionId; };