From b42993b4958d15e57bb80e70d2b2871c230883f5 Mon Sep 17 00:00:00 2001 From: zzz Date: Thu, 8 Mar 2012 17:44:41 +0000 Subject: [PATCH] * GarlicConfig: Remove unused reply block methods --- .../net/i2p/router/message/GarlicConfig.java | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/router/java/src/net/i2p/router/message/GarlicConfig.java b/router/java/src/net/i2p/router/message/GarlicConfig.java index 24e022272b..d3b9e3b4e0 100644 --- a/router/java/src/net/i2p/router/message/GarlicConfig.java +++ b/router/java/src/net/i2p/router/message/GarlicConfig.java @@ -32,16 +32,17 @@ class GarlicConfig { private boolean _requestAck; private RouterInfo _replyThroughRouter; // router through which any replies will be sent before delivery to us private DeliveryInstructions _replyInstructions; // how the message will be sent from the replyThroughRouter to us - private Certificate _replyBlockCertificate; - private long _replyBlockMessageId; - private long _replyBlockExpiration; + // unused and undocumented + //private Certificate _replyBlockCertificate; + //private long _replyBlockMessageId; + //private long _replyBlockExpiration; public GarlicConfig() { _id = -1; _expiration = -1; _cloveConfigs = new ArrayList(4); - _replyBlockMessageId = -1; - _replyBlockExpiration = -1; + //_replyBlockMessageId = -1; + //_replyBlockExpiration = -1; } /** @@ -121,6 +122,7 @@ class GarlicConfig { public void setReplyInstructions(DeliveryInstructions instructions) { _replyInstructions = instructions; } public DeliveryInstructions getReplyInstructions() { return _replyInstructions; } + /**** public long getReplyBlockMessageId() { return _replyBlockMessageId; } public void setReplyBlockMessageId(long id) { _replyBlockMessageId = id; } @@ -129,6 +131,7 @@ class GarlicConfig { public long getReplyBlockExpiration() { return _replyBlockExpiration; } public void setReplyBlockExpiration(long expiration) { _replyBlockExpiration = expiration; } + ****/ /** * Add a clove to the current message - if any cloves are added, an I2NP message @@ -158,9 +161,9 @@ class GarlicConfig { buf.append("").append(getId()).append("").append(NL); buf.append("").append(getRecipient()).append("").append(NL); buf.append("").append(getRecipientPublicKey()).append("").append(NL); - buf.append("").append(getReplyBlockCertificate()).append("").append(NL); - buf.append("").append(new Date(getReplyBlockExpiration())).append("").append(NL); - buf.append("").append(getReplyBlockMessageId()).append("").append(NL); + //buf.append("").append(getReplyBlockCertificate()).append("").append(NL); + //buf.append("").append(new Date(getReplyBlockExpiration())).append("").append(NL); + //buf.append("").append(getReplyBlockMessageId()).append("").append(NL); buf.append("").append(getReplyInstructions()).append("").append(NL); buf.append("").append(getReplyThroughRouter()).append("").append(NL); buf.append("").append(getRequestAck()).append("").append(NL);