Skip to content

Commit

Permalink
Remove dead code in GenerateJob (#1972)
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Nov 9, 2020
1 parent 7c907df commit e12f494
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/plugins/GenerateJob/GenerateJob.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,35 +211,6 @@ define([
const serializeTpl = _.template(Templates.DEEPFORGE_SERIALIZATION);
files.addFile('deepforge/serialization.py', serializeTpl(CONSTANTS));
files.addFile('deepforge/__init__.py', Templates.DEEPFORGE_INIT);
//const outputs = await this.getOutputs(node);
//const name = this.core.getAttribute(node, 'name');
//const content = {};

// inputs and outputs
//content.name = name;
//content.outputs = outputs.map(output => output[0]);
};

GenerateJob.prototype.getConnectionContainer = function () {
var container = this.core.getParent(this.activeNode);

if (this.isMetaTypeOf(container, this.META.Job)) {
container = this.core.getParent(container);
}

return container;
};

GenerateJob.prototype.getInputPortsFor = function (nodeId) {
var container = this.getConnectionContainer();

// Get the connections to this node
return this.core.loadChildren(container)
.then(children => {
return children.filter(child =>
this.core.getPointerPath(child, 'dst') === nodeId)
.map(conn => this.core.getPointerPath(conn, 'src'))[0];
});
};

GenerateJob.prototype.getStorageConfig = function () {
Expand Down

0 comments on commit e12f494

Please sign in to comment.