lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject [48/50] [abbrv] lucene-solr:jira/solr-11165: SOLR-11178: Removed unused method
Date Tue, 08 Aug 2017 12:44:35 GMT
SOLR-11178: Removed unused method


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/3761c446
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/3761c446
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/3761c446

Branch: refs/heads/jira/solr-11165
Commit: 3761c44673767699b6d64ffcaeb8e193047d1c30
Parents: 1f6a945
Author: Shalin Shekhar Mangar <shalin@apache.org>
Authored: Tue Aug 8 17:45:11 2017 +0530
Committer: Shalin Shekhar Mangar <shalin@apache.org>
Committed: Tue Aug 8 17:45:11 2017 +0530

----------------------------------------------------------------------
 .../org/apache/solr/cloud/autoscaling/AutoScalingHandler.java   | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/3761c446/solr/core/src/java/org/apache/solr/cloud/autoscaling/AutoScalingHandler.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/cloud/autoscaling/AutoScalingHandler.java
b/solr/core/src/java/org/apache/solr/cloud/autoscaling/AutoScalingHandler.java
index 686a0e5..b16e9b4 100644
--- a/solr/core/src/java/org/apache/solr/cloud/autoscaling/AutoScalingHandler.java
+++ b/solr/core/src/java/org/apache/solr/cloud/autoscaling/AutoScalingHandler.java
@@ -262,11 +262,6 @@ public class AutoScalingHandler extends RequestHandlerBase implements
Permission
     return currentConfig;
   }
 
-  private void checkErr(CommandOperation op) {
-    if (!op.hasError()) return;
-    throw new ApiBag.ExceptionWithErrObject(SolrException.ErrorCode.BAD_REQUEST, "Error in
command payload", CommandOperation.captureErrors(Collections.singletonList(op)));
-  }
-
   private AutoScalingConfig handleSetClusterPreferences(SolrQueryRequest req, SolrQueryResponse
rsp, CommandOperation op,
                                                         AutoScalingConfig currentConfig)
throws KeeperException, InterruptedException, IOException {
     List<Map<String, Object>> preferences = (List<Map<String, Object>>)
op.getCommandData();


Mime
View raw message