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

[tor-commits] [onionoo/master] Take out unused attribute to save memory.



commit fdb3f8e62135f721b83204963c0ec6ca2c7f3801
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Sat Oct 25 14:55:36 2014 +0200

    Take out unused attribute to save memory.
---
 .../java/org/torproject/onionoo/docs/NodeStatus.java    |   15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/src/main/java/org/torproject/onionoo/docs/NodeStatus.java b/src/main/java/org/torproject/onionoo/docs/NodeStatus.java
index 0df8847..1660383 100644
--- a/src/main/java/org/torproject/onionoo/docs/NodeStatus.java
+++ b/src/main/java/org/torproject/onionoo/docs/NodeStatus.java
@@ -12,9 +12,6 @@ import java.util.SortedSet;
 import java.util.TreeMap;
 import java.util.TreeSet;
 
-import org.apache.commons.codec.DecoderException;
-import org.apache.commons.codec.binary.Hex;
-import org.apache.commons.codec.digest.DigestUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -35,11 +32,6 @@ public class NodeStatus extends Document {
     return this.fingerprint;
   }
 
-  private String hashedFingerprint;
-  public String getHashedFingerprint() {
-    return this.hashedFingerprint;
-  }
-
   private String nickname;
   public String getNickname() {
     return this.nickname;
@@ -319,13 +311,6 @@ public class NodeStatus extends Document {
     this.isRelay = isRelay;
     this.nickname = nickname;
     this.fingerprint = fingerprint;
-    try {
-      this.hashedFingerprint = DigestUtils.shaHex(Hex.decodeHex(
-          this.fingerprint.toCharArray())).toUpperCase();
-    } catch (DecoderException e) {
-      throw new IllegalArgumentException("Fingerprint '" + fingerprint
-          + "' is not a valid fingerprint.", e);
-    }
     this.address = address;
     this.exitAddresses = new TreeSet<String>();
     if (exitAddresses != null) {



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