Skip to content

Commit 4168b88

Browse files
committed
unused
1 parent 7b68666 commit 4168b88

File tree

1 file changed

+0
-25
lines changed
  • services/static-webserver/client/source/class/osparc/file

1 file changed

+0
-25
lines changed

services/static-webserver/client/source/class/osparc/file/FilesTree.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -504,31 +504,6 @@ qx.Class.define("osparc.file.FilesTree", {
504504
}
505505
},
506506

507-
__itemsToDataset: function(locationId, datasetId, files, model) {
508-
const datasetModel = model ? model : this.__getModelFromPath(locationId, datasetId);
509-
if (datasetModel) {
510-
datasetModel.getChildren().removeAll();
511-
if (files.length) {
512-
// OM here
513-
const locationData = osparc.data.Converters.fromDSMToVirtualTreeModel(locationId, datasetId, files);
514-
const datasetData = locationData[0].children;
515-
datasetData[0].children.forEach(data => {
516-
this.self().attachPathLabel(datasetModel.getPathLabel(), data);
517-
const filesModel = qx.data.marshal.Json.createModel(data, true);
518-
datasetModel.getChildren().append(filesModel);
519-
});
520-
}
521-
// sort files
522-
osparc.data.Converters.sortModelByLabel(datasetModel);
523-
524-
this.__rerender(datasetModel);
525-
526-
this.fireEvent("filesAddedToTree");
527-
}
528-
529-
this.__filesReceived(locationId, datasetId, files);
530-
},
531-
532507
__rerender: function(item) {
533508
// Hack to trigger a rebuild of the item.
534509
// Without this sometimes the arrow giving access to the children is not rendered

0 commit comments

Comments
 (0)