From 27296922bf87ef6bbcddca654f2349293b847824 Mon Sep 17 00:00:00 2001
From: Peter Powers <pmpowers@usgs.gov>
Date: Sun, 31 Jan 2021 12:50:10 -0700
Subject: [PATCH] removed deprecated method

---
 .../gov/usgs/earthquake/nshmp/model/SourceTree.java | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/src/main/java/gov/usgs/earthquake/nshmp/model/SourceTree.java b/src/main/java/gov/usgs/earthquake/nshmp/model/SourceTree.java
index 1c3efd01..835e39a0 100644
--- a/src/main/java/gov/usgs/earthquake/nshmp/model/SourceTree.java
+++ b/src/main/java/gov/usgs/earthquake/nshmp/model/SourceTree.java
@@ -84,21 +84,10 @@ public class SourceTree {
 
   /** The type of sources in this tree. */
   public SourceType type() {
+    // TODO what should this return for mixed fault/cluster ??
     return type;
   }
 
-  // TODO want to get rid of this but currently needed
-  // to distinguish trees made up of CLUSTER and FAULT
-  @Deprecated
-  public boolean singleType() {
-    // leafBranches.keySet().forEach(System.out::println);
-    return leafBranches.keySet().stream()
-        .map(Leaf::ruptureSet)
-        .map(RuptureSet::type)
-        .distinct()
-        .count() == 1;
-  }
-
   /** The ground motion models to use with this tree. */
   public GmmSet gmms() {
     return gmms;
-- 
GitLab