From e60ebe520cea7b8dfcb5a169237ac039bc9ce00e Mon Sep 17 00:00:00 2001
From: Peter Powers <pmpowers@usgs.gov>
Date: Thu, 3 Feb 2022 20:15:25 -0700
Subject: [PATCH] more cleanup

---
 .../earthquake/nshmp/calc/HazardExport.java   | 55 -------------------
 1 file changed, 55 deletions(-)

diff --git a/src/main/java/gov/usgs/earthquake/nshmp/calc/HazardExport.java b/src/main/java/gov/usgs/earthquake/nshmp/calc/HazardExport.java
index a782dbd5..4cf28304 100644
--- a/src/main/java/gov/usgs/earthquake/nshmp/calc/HazardExport.java
+++ b/src/main/java/gov/usgs/earthquake/nshmp/calc/HazardExport.java
@@ -303,61 +303,6 @@ public final class HazardExport {
     }
   }
 
-  /*
-   * Write the current list of {@code Disaggregation}s to file.
-   */
-  // @Deprecated
-  // private void writeDisagg(Disaggregation disagg) throws IOException {
-  //
-  // /*
-  // * Writing of Hazard results will have already created necessary Imt, Gmm,
-  // * and SourceType directories.
-  // */
-  // String name = namedSites ? disagg.site.name() :
-  // lonLatStr(disagg.site.location());
-  // for (Entry<Imt, ImtDisagg> imtEntry : disagg.disaggs.entrySet()) {
-  //
-  // /* Write total dataset. */
-  // ImtDisagg imtDisagg = imtEntry.getValue();
-  // DisaggDataset ddTotal = imtDisagg.totalDataset;
-  // DisaggConfig dc = imtDisagg.config;
-  // DisaggExport exporter = new DisaggExport(ddTotal, ddTotal, dc, "Total",
-  // false, true, true);
-  // Path imtDir = dir.resolve(imtEntry.getKey().name());
-  // Path totalDir = imtDir.resolve(DISAGG_DIR);
-  // Files.createDirectories(totalDir);
-  // exporter.toFile(totalDir, name);
-  //
-  // if (exportSource) {
-  // for (Entry<SourceType, DisaggDataset> typeEntry :
-  // imtDisagg.typeDatasets.entrySet()) {
-  // SourceType type = typeEntry.getKey();
-  // Path typeDir = imtDir.resolve(TYPE_DIR)
-  // .resolve(type.name())
-  // .resolve(DISAGG_DIR);
-  // DisaggDataset ddType = typeEntry.getValue();
-  // exporter = new DisaggExport(ddTotal, ddType, dc, type.toString(), false,
-  // true, true);
-  // exporter.toFile(typeDir, name);
-  // }
-  // }
-  //
-  // if (exportGmm) {
-  // for (Entry<Gmm, DisaggDataset> gmmEntry : imtDisagg.gmmDatasets.entrySet())
-  // {
-  // Gmm gmm = gmmEntry.getKey();
-  // Path gmmDir = imtDir.resolve(GMM_DIR)
-  // .resolve(gmm.name())
-  // .resolve(DISAGG_DIR);
-  // DisaggDataset ddGmm = gmmEntry.getValue();
-  // exporter = new DisaggExport(ddTotal, ddGmm, dc, gmm.toString(), false,
-  // true, true);
-  // exporter.toFile(gmmDir, name);
-  // }
-  // }
-  // }
-  // }
-
   private static String valueStr(
       XySequence curve,
       Function<Double, String> formatter) {
-- 
GitLab