remove some cruft

This commit is contained in:
Seth Alves 2016-12-08 17:00:50 -08:00
parent 369f61e172
commit e06a445959

View file

@ -23,8 +23,7 @@
function showTabletUI() {
tabletShown = true;
print("show tablet-ui");
// var toolBar = Toolbars.getToolbar("com.highfidelity.interface.toolbar.system");
UIWebTablet = new WebTablet("qml/desktop/TabletUI.qml", null, null, tabletLocation);
UIWebTablet = new WebTablet("qml/hifi/tablet/Tablet.qml", null, null, tabletLocation);
HMD.tabletID = UIWebTablet.webEntityID;
var setUpTabletUI = function() {
@ -35,13 +34,6 @@
return;
}
print("HERE got root", root);
var buttons = Toolbars.getToolbarButtons("com.highfidelity.interface.toolbar.system");
print("HERE got buttons: ", buttons.length);
for (var i = 0; i < buttons.length; i++) {
print("HERE hooking up button: ", buttons[i].objectName);
Toolbars.hookUpButtonClone("com.highfidelity.interface.toolbar.system", root, buttons[i]);
}
// UserActivityLogger.openedTabletUI();
}
Script.setTimeout(setUpTabletUI, 100);
@ -54,7 +46,6 @@
if (UIWebTablet.onClose) {
UIWebTablet.onClose();
}
Toolbars.destroyButtonClones("com.highfidelity.interface.toolbar.system");
tabletLocation = UIWebTablet.getLocation();
UIWebTablet.destroy();