Skip to content
This repository was archived by the owner on Apr 26, 2021. It is now read-only.

Commit

Permalink
removed function
Browse files Browse the repository at this point in the history
  • Loading branch information
faizanvahevaria committed Feb 10, 2020
1 parent 531d7bd commit fe343f3
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/transport/transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,34 +313,7 @@ function addNewPackageInExplorer(Package, XMIData, mainOwnedElements) {
return result;
}

/**
* @function importModel
* @description Read file from file path and parse it to JSONObject
* @param {string} file
*/
async function importModelABC(file) {

let finalPath = null;
if (file) {
finalPath = file;
} else {

var mFiles = app.dialogs.showOpenDialog('Import package As JSON (.json)', null, JSON_FILE_FILTERS)
if (mFiles && mFiles.length > 0) {
/* Main XMIData */
finalPath = mFiles[0];
}
}

let filePath = finalPath;
var contentStr = fs.readFileSync(filePath, 'utf8');
var data = JSON.parse(contentStr);
data = data.ownedElements[0];
let mProject = app.project.getProject();
result = app.project.importFromJson(mProject, data);
return result;

}
async function importModel(file) {

let finalPath = null;
Expand Down

0 comments on commit fe343f3

Please sign in to comment.