Skip to content
Snippets Groups Projects
Commit 1fc75e96 authored by Powers, Peter M.'s avatar Powers, Peter M.
Browse files

cleanup

parent 55a324ad
No related branches found
No related tags found
1 merge request!432General edits and improvements
...@@ -17,9 +17,6 @@ import java.util.function.Predicate; ...@@ -17,9 +17,6 @@ import java.util.function.Predicate;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import java.util.stream.IntStream; import java.util.stream.IntStream;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import gov.usgs.earthquake.nshmp.data.XySequence; import gov.usgs.earthquake.nshmp.data.XySequence;
import gov.usgs.earthquake.nshmp.geo.json.Feature; import gov.usgs.earthquake.nshmp.geo.json.Feature;
import gov.usgs.earthquake.nshmp.geo.json.FeatureCollection; import gov.usgs.earthquake.nshmp.geo.json.FeatureCollection;
...@@ -37,10 +34,6 @@ import gov.usgs.earthquake.nshmp.tree.LogicTree; ...@@ -37,10 +34,6 @@ import gov.usgs.earthquake.nshmp.tree.LogicTree;
*/ */
public class Models { public class Models {
static final Gson GSON = new GsonBuilder()
.setPrettyPrinting()
.create();
/** /**
* Returns an object for JSON serialization with the name and ID of all source * Returns an object for JSON serialization with the name and ID of all source
* logic tree groups in the supplied model organized by tectonic setting and * logic tree groups in the supplied model organized by tectonic setting and
...@@ -226,7 +219,7 @@ public class Models { ...@@ -226,7 +219,7 @@ public class Models {
/* /*
* Map source tree into a logic tree of MFDs. Note that the mfdTree * Map source tree into a logic tree of MFDs. Note that the mfdTree
* created below is actually a LogicGroup becuase a SourceTree may contain * created below is actually a LogicGroup because a SourceTree may contain
* null (do-nothing) branches such that weights do not sum to one. * null (do-nothing) branches such that weights do not sum to one.
*/ */
LogicTree<Mfd> mfdTree = ModelTrees.toMfdTree(tree); LogicTree<Mfd> mfdTree = ModelTrees.toMfdTree(tree);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment