Skip to content

Commit

Permalink
Removes commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
joaobispo committed Apr 16, 2024
1 parent 269c352 commit c229ed6
Showing 1 changed file with 0 additions and 92 deletions.
92 changes: 0 additions & 92 deletions GuiHelper/src/pt/up/fe/specs/guihelper/SetupAccess.java
Original file line number Diff line number Diff line change
Expand Up @@ -518,98 +518,6 @@ public List<String> getListOfStrings(SetupFieldEnum setupField) {
return ((StringList) value).getStringList();
}

/**
* @param setup
* @param parentFolder
* @param folder
* @return
*/
/*
private static File getExistingFolderSafe(SetupData setupData, SetupFieldEnum existingFolder,
File globalFolder) {
SetupAccess setup = new SetupAccess(setupData);
String folderpath = setup.getString(existingFolder);
// Try using global folder
if (globalFolder != null) {
// File matlabInputFilesDirectory = setup.getExistingFolder(globalFolder, existingFolder);
File folder = getFolder(globalFolder, folderpath, true);
File folder = IoUtils.existingFolder(globalFolder, folderpath);
if (folder != null) {
return folder;
}
throw new RuntimeException("Could not get folder.");
}
// Try using absolute path
File folder = IoUtils.existingFolder(null, folderpath);
if (folder != null) {
if (folder.isAbsolute()) {
return folder;
}
}
// Try using setup file location
if (setupData.getSetupFile() != null) {
File parent = setupData.getSetupFile().getParentFile();
folder = IoUtils.existingFolder(parent, folderpath);
if (folder != null) {
return folder;
}
throw new RuntimeException("Could not get folder.");
}
throw new RuntimeException("Could not get folder.");
}
*/

/**
*
* @param folder
* @return
* @deprecated
*/
/*
public File getFileV2(SetupFieldEnum folder) {
return getFileV2(null, folder);
}
*/

/**
*
* @param globalFolder
* @param folder
* @return
* @deprecated
*/
/*
public File getFileV2(File globalFolder, SetupFieldEnum folder) {
String stringpath = getString(folder);
File basepath = new File(stringpath);
String parent = basepath.getParent();
if (parent == null) {
parent = ".";
}
File parentFolder = getFolderV2(globalFolder, parent, true);
// IoUtils.existingFile(new File(p))
if (parentFolder == null) {
LoggingUtils.msgWarn("Could not get parent folder for file with path '" + basepath + "'");
return null;
}
File filepath = new File(parentFolder, basepath.getName());
return IoUtils.existingFile(filepath.getAbsolutePath());
}
*/

/**
* - If given path is absolute, uses that path;<br>
* - Tries to combine global folder with the given path;<br>
Expand Down

0 comments on commit c229ed6

Please sign in to comment.