I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit b42993b4 authored by zzz's avatar zzz
Browse files

* GarlicConfig: Remove unused reply block methods

parent a9935cb6
No related branches found
No related tags found
No related merge requests found
...@@ -32,16 +32,17 @@ class GarlicConfig { ...@@ -32,16 +32,17 @@ class GarlicConfig {
private boolean _requestAck; private boolean _requestAck;
private RouterInfo _replyThroughRouter; // router through which any replies will be sent before delivery to us 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 DeliveryInstructions _replyInstructions; // how the message will be sent from the replyThroughRouter to us
private Certificate _replyBlockCertificate; // unused and undocumented
private long _replyBlockMessageId; //private Certificate _replyBlockCertificate;
private long _replyBlockExpiration; //private long _replyBlockMessageId;
//private long _replyBlockExpiration;
public GarlicConfig() { public GarlicConfig() {
_id = -1; _id = -1;
_expiration = -1; _expiration = -1;
_cloveConfigs = new ArrayList(4); _cloveConfigs = new ArrayList(4);
_replyBlockMessageId = -1; //_replyBlockMessageId = -1;
_replyBlockExpiration = -1; //_replyBlockExpiration = -1;
} }
/** /**
...@@ -121,6 +122,7 @@ class GarlicConfig { ...@@ -121,6 +122,7 @@ class GarlicConfig {
public void setReplyInstructions(DeliveryInstructions instructions) { _replyInstructions = instructions; } public void setReplyInstructions(DeliveryInstructions instructions) { _replyInstructions = instructions; }
public DeliveryInstructions getReplyInstructions() { return _replyInstructions; } public DeliveryInstructions getReplyInstructions() { return _replyInstructions; }
/****
public long getReplyBlockMessageId() { return _replyBlockMessageId; } public long getReplyBlockMessageId() { return _replyBlockMessageId; }
public void setReplyBlockMessageId(long id) { _replyBlockMessageId = id; } public void setReplyBlockMessageId(long id) { _replyBlockMessageId = id; }
...@@ -129,6 +131,7 @@ class GarlicConfig { ...@@ -129,6 +131,7 @@ class GarlicConfig {
public long getReplyBlockExpiration() { return _replyBlockExpiration; } public long getReplyBlockExpiration() { return _replyBlockExpiration; }
public void setReplyBlockExpiration(long expiration) { _replyBlockExpiration = expiration; } public void setReplyBlockExpiration(long expiration) { _replyBlockExpiration = expiration; }
****/
/** /**
* Add a clove to the current message - if any cloves are added, an I2NP message * Add a clove to the current message - if any cloves are added, an I2NP message
...@@ -158,9 +161,9 @@ class GarlicConfig { ...@@ -158,9 +161,9 @@ class GarlicConfig {
buf.append("<garlicId>").append(getId()).append("</garlicId>").append(NL); buf.append("<garlicId>").append(getId()).append("</garlicId>").append(NL);
buf.append("<recipient>").append(getRecipient()).append("</recipient>").append(NL); buf.append("<recipient>").append(getRecipient()).append("</recipient>").append(NL);
buf.append("<recipientPublicKey>").append(getRecipientPublicKey()).append("</recipientPublicKey>").append(NL); buf.append("<recipientPublicKey>").append(getRecipientPublicKey()).append("</recipientPublicKey>").append(NL);
buf.append("<replyBlockCertificate>").append(getReplyBlockCertificate()).append("</replyBlockCertificate>").append(NL); //buf.append("<replyBlockCertificate>").append(getReplyBlockCertificate()).append("</replyBlockCertificate>").append(NL);
buf.append("<replyBlockExpiration>").append(new Date(getReplyBlockExpiration())).append("</replyBlockExpiration>").append(NL); //buf.append("<replyBlockExpiration>").append(new Date(getReplyBlockExpiration())).append("</replyBlockExpiration>").append(NL);
buf.append("<replyBlockMessageId>").append(getReplyBlockMessageId()).append("</replyBlockMessageId>").append(NL); //buf.append("<replyBlockMessageId>").append(getReplyBlockMessageId()).append("</replyBlockMessageId>").append(NL);
buf.append("<replyInstructions>").append(getReplyInstructions()).append("</replyInstructions>").append(NL); buf.append("<replyInstructions>").append(getReplyInstructions()).append("</replyInstructions>").append(NL);
buf.append("<replyThroughRouter>").append(getReplyThroughRouter()).append("</replyThroughRouter>").append(NL); buf.append("<replyThroughRouter>").append(getReplyThroughRouter()).append("</replyThroughRouter>").append(NL);
buf.append("<requestAck>").append(getRequestAck()).append("</requestAck>").append(NL); buf.append("<requestAck>").append(getRequestAck()).append("</requestAck>").append(NL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment