Message, TransactionInput, TransactionOutput, TransactionOutPoint: remove deprecated methods bitcoinSerialize(), unsafeBitcoinSerialize()

This commit is contained in:
Andreas Schildbach 2024-09-03 00:38:28 +02:00
parent 615232e79b
commit dc7d64f7cb
6 changed files with 0 additions and 35 deletions

View File

@ -48,18 +48,4 @@ public interface Message {
* @return serialized data in Bitcoin protocol format
*/
byte[] serialize();
/**
* @deprecated use {@link #serialize()}
*/
@Deprecated
default byte[] bitcoinSerialize() {
return serialize();
}
/** @deprecated use {@link #serialize()} */
@Deprecated
default byte[] unsafeBitcoinSerialize() {
return serialize();
}
}

View File

@ -185,12 +185,6 @@ public class TransactionInput {
return write(ByteBuffer.allocate(messageSize())).array();
}
/** @deprecated use {@link #serialize()} */
@Deprecated
public byte[] bitcoinSerialize() {
return serialize();
}
/**
* Return the size of the serialized message. Note that if the message was deserialized from a payload, this
* size can differ from the size of the original payload.

View File

@ -117,12 +117,6 @@ public class TransactionOutPoint {
return write(ByteBuffer.allocate(BYTES)).array();
}
/** @deprecated use {@link #serialize()} */
@Deprecated
public byte[] bitcoinSerialize() {
return serialize();
}
/** @deprecated use {@link #BYTES} */
@Deprecated
public int getMessageSize() {

View File

@ -148,12 +148,6 @@ public class TransactionOutput {
return write(ByteBuffer.allocate(messageSize())).array();
}
/** @deprecated use {@link #serialize()} */
@Deprecated
public byte[] bitcoinSerialize() {
return serialize();
}
/**
* Return the size of the serialized message. Note that if the message was deserialized from a payload, this
* size can differ from the size of the original payload.

View File

@ -22,8 +22,6 @@ public class MessageTest {
@Test
public void deprecatedMembers() {
Message message = new UnknownMessage("dummy");
message.bitcoinSerialize();
message.unsafeBitcoinSerialize();
message.getMessageSize();
}
}

View File

@ -60,6 +60,5 @@ public class TransactionOutPointTest {
outpoint.getHash();
outpoint.getMessageSize();
outpoint.getIndex();
outpoint.bitcoinSerialize();
}
}