Remove dead code

This commit is contained in:
Ryan Huffman 2016-10-07 13:40:35 -07:00
parent de14fdffb7
commit 0f0ea5f73f

View file

@ -192,42 +192,3 @@ ControllerDisplayManager = function() {
updateControllers();
}
/*
var controllerDisplayManager = new ControllerDisplayManager();
Messages.subscribe('Hifi-Object-Manipulation');
function onMessageReceived(channel, message, sender) {
print(channel, message, sender);
if (channel == 'Hifi-Object-Manipulation') {// && sender == MyAvatar.sessionUUID) {
print("got manip");
var data = JSON.parse(message);
print("post data", data);
var visible = data.action != 'equip';
print("Calling...");
if (data.joint == "LeftHand") {
controllerDisplayManager.setLeftVisible(visible);
} else if (data.joint == "RightHand") {
controllerDisplayManager.setRightVisible(visible);
}
}
}
Messages.messageReceived.connect(onMessageReceived);
var visible = false;
print("SETTING IT UP");
print("done");
function toggleVis() {
print("toggling");
visible = !visible;
controllerDisplayManager.setVisible(visible);
}
//toggleVis();
//Script.setInterval(toggleVis, 1000);
Script.scriptEnding.connect(function() {
print("destorying...");
controllerDisplayManager.destroy();
controllerDisplayManager = null;
});
*/