You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ct...@apache.org on 2021/06/07 18:49:08 UTC
[accumulo] branch main updated: Remove unused code residual from
#2122
This is an automated email from the ASF dual-hosted git repository.
ctubbsii pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/main by this push:
new 3fd4874 Remove unused code residual from #2122
3fd4874 is described below
commit 3fd48747970710a119d870b76baadd8d9d69e181
Author: Christopher Tubbs <ct...@apache.org>
AuthorDate: Mon Jun 7 14:46:31 2021 -0400
Remove unused code residual from #2122
Remove two private methods to convert an iterable into a map that are no
longer necessary and an unused import.
---
.../accumulo/core/clientImpl/NamespaceOperationsImpl.java | 1 -
.../main/java/org/apache/accumulo/test/TableOperationsIT.java | 8 --------
.../java/org/apache/accumulo/test/functional/DurabilityIT.java | 10 ----------
3 files changed, 19 deletions(-)
diff --git a/core/src/main/java/org/apache/accumulo/core/clientImpl/NamespaceOperationsImpl.java b/core/src/main/java/org/apache/accumulo/core/clientImpl/NamespaceOperationsImpl.java
index b812e3a..678cee0 100644
--- a/core/src/main/java/org/apache/accumulo/core/clientImpl/NamespaceOperationsImpl.java
+++ b/core/src/main/java/org/apache/accumulo/core/clientImpl/NamespaceOperationsImpl.java
@@ -30,7 +30,6 @@ import java.util.EnumSet;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import java.util.Map.Entry;
import java.util.SortedSet;
import java.util.TreeMap;
import java.util.TreeSet;
diff --git a/test/src/main/java/org/apache/accumulo/test/TableOperationsIT.java b/test/src/main/java/org/apache/accumulo/test/TableOperationsIT.java
index be25e69..3182e35 100644
--- a/test/src/main/java/org/apache/accumulo/test/TableOperationsIT.java
+++ b/test/src/main/java/org/apache/accumulo/test/TableOperationsIT.java
@@ -259,14 +259,6 @@ public class TableOperationsIT extends AccumuloClusterHarness {
expectedSplits.isEmpty());
}
- private Map<String,String> propsToMap(Iterable<Map.Entry<String,String>> props) {
- Map<String,String> map = new HashMap<>();
- for (Map.Entry<String,String> prop : props) {
- map.put(prop.getKey(), prop.getValue());
- }
- return map;
- }
-
/** Compare only the row, column family and column qualifier. */
static class KeyRowColFColQComparator implements Comparator<Key> {
@Override
diff --git a/test/src/main/java/org/apache/accumulo/test/functional/DurabilityIT.java b/test/src/main/java/org/apache/accumulo/test/functional/DurabilityIT.java
index c139954..afe5288 100644
--- a/test/src/main/java/org/apache/accumulo/test/functional/DurabilityIT.java
+++ b/test/src/main/java/org/apache/accumulo/test/functional/DurabilityIT.java
@@ -21,9 +21,7 @@ package org.apache.accumulo.test.functional;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
-import java.util.HashMap;
import java.util.Map;
-import java.util.Map.Entry;
import org.apache.accumulo.core.client.Accumulo;
import org.apache.accumulo.core.client.AccumuloClient;
@@ -152,14 +150,6 @@ public class DurabilityIT extends ConfigurableMacBase {
}
}
- private static Map<String,String> map(Iterable<Entry<String,String>> entries) {
- Map<String,String> result = new HashMap<>();
- for (Entry<String,String> entry : entries) {
- result.put(entry.getKey(), entry.getValue());
- }
- return result;
- }
-
@Test
public void testMetaDurability() throws Exception {
try (AccumuloClient c = Accumulo.newClient().from(getClientProperties()).build()) {