[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-web/master] Remove unnecessary declaration.



commit b1a6c60a81ab39192cac4841f3fce7cdf82a0568
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Thu Nov 21 13:55:24 2019 +0100

    Remove unnecessary declaration.
---
 src/main/java/org/torproject/metrics/web/NewsServlet.java | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/main/java/org/torproject/metrics/web/NewsServlet.java b/src/main/java/org/torproject/metrics/web/NewsServlet.java
index f47f189..4175659 100644
--- a/src/main/java/org/torproject/metrics/web/NewsServlet.java
+++ b/src/main/java/org/torproject/metrics/web/NewsServlet.java
@@ -10,9 +10,7 @@ import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
-import java.util.SortedMap;
 import java.util.TimeZone;
-import java.util.TreeMap;
 
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServletRequest;
@@ -24,8 +22,6 @@ public class NewsServlet extends AnyServlet {
 
   protected List<News> sortedNews;
 
-  protected SortedMap<String, String> countries;
-
   @Override
   public void init() throws ServletException {
     super.init();
@@ -37,11 +33,6 @@ public class NewsServlet extends AnyServlet {
     }
     sortedNews.sort((o1, o2) -> o1.getStart().compareTo(o2.getStart()) * -1);
     this.sortedNews = sortedNews;
-    SortedMap<String, String> countries = new TreeMap<>();
-    for (String[] country : Countries.getInstance().getCountryList()) {
-      countries.put(country[0], country[1]);
-    }
-    this.countries = countries;
   }
 
   @Override

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits