mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Remove unused functions and dependencies.
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user