From bbccb476c052d09be7d9aeadde8f5470e51fcb26 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Sat, 17 Nov 2018 10:26:59 +0000
Subject: [PATCH] NTCP2 unused code

---
 .../com/southernstorm/noise/protocol/HandshakeState.java | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/router/java/src/com/southernstorm/noise/protocol/HandshakeState.java b/router/java/src/com/southernstorm/noise/protocol/HandshakeState.java
index ea2416ecff..54b9c7c4cc 100644
--- a/router/java/src/com/southernstorm/noise/protocol/HandshakeState.java
+++ b/router/java/src/com/southernstorm/noise/protocol/HandshakeState.java
@@ -44,8 +44,6 @@ public class HandshakeState implements Destroyable {
 	private int action;
 	private final int requirements;
 	private int patternIndex;
-        // not supported
-	private static final byte[] prologue = null;
 
 	/**
 	 * Enumerated value that indicates that the handshake object
@@ -352,10 +350,7 @@ public class HandshakeState implements Destroyable {
 		}
 		
 		// Hash the prologue value.
-		if (prologue != null)
-			symmetric.mixHash(prologue, 0, prologue.length);
-		else
-			symmetric.mixHash(emptyPrologue, 0, 0);
+		symmetric.mixHash(emptyPrologue, 0, 0);
 		
 		// Mix the pre-supplied public keys into the handshake hash.
 		if (isInitiator) {
@@ -798,8 +793,6 @@ public class HandshakeState implements Destroyable {
 			remotePublicKey.destroy();
 		if (remoteEphemeral != null)
 			remoteEphemeral.destroy();
-		if (prologue != null)
-			Noise.destroy(prologue);
 	}
 	
 	/**
-- 
GitLab