Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dert1129 committed Nov 11, 2024
1 parent d3c1a87 commit bf7fb6e
Showing 1 changed file with 0 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,51 +128,6 @@ public List<SpatialViewerDataset> getSpatialViewerDataset() throws Exception {

}

// public List<SpatialViewerDataset> getSpatialViewerDataset() throws Exception {
// List <SpatialViewerDataset> datasetsFinal = new ArrayList<>();
// List <SpatialViewerFileDataset> datasets = new ArrayList<>();
// List <SpatialViewerExternalLinkDataset> externalLinkList = new ArrayList<>();
// Map<String, SpatialViewerFileDataset> fileMap = new HashMap<>();
// Map<String, SpatialViewerExternalLinkDataset> linkMap = new HashMap<>();
// Double maxFileReleaseVersion = fileRepo.max();
// Double maxLinkReleaseVersion = externalLinkRepo.max();
// Double maxReleaseVersion = 0.00;
// if(maxFileReleaseVersion > maxLinkReleaseVersion){
// maxReleaseVersion = maxFileReleaseVersion;
// }else if(maxFileReleaseVersion == maxLinkReleaseVersion){
// maxReleaseVersion = maxFileReleaseVersion;
// }else{
// maxReleaseVersion = maxLinkReleaseVersion;
// }
// datasets.addAll(fileRepo.findAll());
// externalLinkList.addAll(externalLinkRepo.findAll());
// for (SpatialViewerFileDataset spatialViewerFileDataset : datasets){
// if(spatialViewerFileDataset.getReleaseVersion() != null){
// if (Double.compare(spatialViewerFileDataset.getReleaseVersion(), maxReleaseVersion) == EQUALITY_OPERATOR){
// spatialViewerFileDataset.setReleaseVersionDisplay("Recently Released - " + recentlyReleasedDate);
// }
// }else{
// spatialViewerFileDataset.setReleaseVersionDisplay(null);
// }
// fileMap.put(spatialViewerFileDataset.getDlFileId(), spatialViewerFileDataset);
// }

// for(SpatialViewerExternalLinkDataset externalLinkDataset : externalLinkList){
// if(externalLinkDataset.getReleaseVersion() != null){
// if(Double.compare(externalLinkDataset.getReleaseVersion(), maxReleaseVersion) == EQUALITY_OPERATOR){
// externalLinkDataset.setReleaseVersionDisplay("Recently Released - " + recentlyReleasedDate);
// }
// }else{
// externalLinkDataset.setReleaseVersionDisplay(null);
// }
// linkMap.put(externalLinkDataset.getExternalLink(), externalLinkDataset);
// }

// datasetsFinal.addAll(linkMap.values());
// datasetsFinal.addAll(fileMap.values());
// return datasetsFinal;
// }

public List<SpatialViewerFileDataset> getSpatialViewerFileDataset() throws IOException, Exception {
return fileRepo.findAll();
}
Expand Down

0 comments on commit bf7fb6e

Please sign in to comment.