removing dead code

This commit is contained in:
Wayne Chen 2019-03-11 16:43:26 -07:00
parent 80821e8b7e
commit 84b177996b

View file

@ -11,17 +11,10 @@
Script.include("/~/system/libraries/controllerDispatcherUtils.js"); Script.include("/~/system/libraries/controllerDispatcherUtils.js");
Script.include("/~/system/libraries/controllers.js"); Script.include("/~/system/libraries/controllers.js");
(function () { // BEGIN LOCAL_SCOPE (function() { // BEGIN LOCAL_SCOPE
function PushToTalkHandler() { function PushToTalkHandler() {
var _this = this; var _this = this;
this.active = false; this.active = false;
//var pttMapping, mappingName;
this.setup = function () {
//mappingName = 'Hifi-PTT-Dev-' + Math.random();
//pttMapping = Controller.newMapping(mappingName);
//pttMapping.enable();
};
this.shouldTalk = function (controllerData) { this.shouldTalk = function (controllerData) {
// Set up test against controllerData here... // Set up test against controllerData here...
@ -53,10 +46,6 @@ Script.include("/~/system/libraries/controllers.js");
return makeRunningValues(true, [], []); return makeRunningValues(true, [], []);
}; };
this.cleanup = function () {
//pttMapping.disable();
};
this.parameters = makeDispatcherModuleParameters( this.parameters = makeDispatcherModuleParameters(
950, 950,
["head"], ["head"],
@ -68,9 +57,8 @@ Script.include("/~/system/libraries/controllers.js");
enableDispatcherModule("PushToTalk", pushToTalk); enableDispatcherModule("PushToTalk", pushToTalk);
function cleanup() { function cleanup() {
pushToTalk.cleanup();
disableDispatcherModule("PushToTalk"); disableDispatcherModule("PushToTalk");
}; };
Script.scriptEnding.connect(cleanup); Script.scriptEnding.connect(cleanup);
}()); // END LOCAL_SCOPE }()); // END LOCAL_SCOPE