Remove unused functions and dependencies.

This commit is contained in:
Sean Lip
2016-06-09 18:45:00 -07:00
parent 42a4a1ed8f
commit c6517bc777
3 changed files with 1 additions and 15 deletions

View File

@@ -66,12 +66,10 @@ blocklyApp.FieldView = ng.core
providers: [blocklyApp.TreeService, blocklyApp.UtilsService]
})
.Class({
constructor: [blocklyApp.TreeService, blocklyApp.UtilsService,
function(_treeService, _utilsService) {
constructor: [blocklyApp.UtilsService, function(_utilsService) {
this.optionText = {
keys: []
};
this.treeService = _treeService;
this.utilsService = _utilsService;
}],
ngOnInit: function() {

View File

@@ -36,12 +36,6 @@ blocklyApp.TreeService = ng.core
// to shift focus back to the tree as a whole.
this.previousKey_ = null;
},
createId: function(obj) {
if (obj && obj.id) {
return obj.id;
}
return 'blockly-' + Blockly.genUid();
},
setActiveDesc: function(node, id) {
blocklyApp.debug && console.log('setting active descendant for tree ' + id);
this.activeDesc_[id] = node;

View File

@@ -203,12 +203,6 @@ blocklyApp.WorkspaceTreeView = ng.core
this.treeService.updateSelectedNode(parentList, tree, false);
}
},
setId: function(block) {
if (this.isTopBlock) {
return this.parentId + '-node0';
}
return this.treeService.createId(block);
},
sendToSelected: function(block) {
if (this.clipboardService) {
this.clipboardService.pasteToMarkedConnection(block, false);