Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen, David (398B-Affiliate) committed Apr 17, 2024
1 parent 2833f8e commit ea8a8d0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1084,17 +1084,6 @@ public void writeJson(String outputLocation)
FileUtils.writeStringToFile(new File(outputLocation), granuleJson.toJSONString(), StandardCharsets.UTF_8);
}

public void writeJson(String outputLocation, JSONObject jsonObject)
throws IOException{
JSONObject granuleJson = jsonObject;
FileUtils.writeStringToFile(new File(outputLocation), granuleJson.toJSONString(), StandardCharsets.UTF_8);
}

public void writeJson(String outputLocation, String jsonStr)
throws IOException{
FileUtils.writeStringToFile(new File(outputLocation), jsonStr, StandardCharsets.UTF_8);
}

public Dataset getDataset(){
return this.dataset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import gov.nasa.cumulus.metadata.umm.generated.TrackType;

import gov.nasa.podaac.inventory.model.GranuleCharacter;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
Expand All @@ -41,7 +40,6 @@
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathExpressionException;
import java.nio.charset.StandardCharsets;
import java.util.*;
import java.util.stream.Collectors;
import java.util.Collection;
Expand Down
4 changes: 0 additions & 4 deletions src/test/java/gov/nasa/cumulus/metadata/test/UMMTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -524,10 +524,6 @@ public void testSentinelManifestNotOverIDL()

JSONObject umm = parseXfduManifest(testFile, testConfigFile, granuleId);

MetadataFilesToEcho mfte = new MetadataFilesToEcho(true);
mfte.writeJson("/tmp/notOverIDL.json", umm.toJSONString());


//SpatialExtent
JSONObject hsd = (JSONObject) ((JSONObject) umm.get("SpatialExtent" )).get("HorizontalSpatialDomain" );

Expand Down

0 comments on commit ea8a8d0

Please sign in to comment.