Skip to content

Commit

Permalink
Message, TransactionInput, TransactionOutput, TransactionOutPoint: re…
Browse files Browse the repository at this point in the history
…move deprecated methods bitcoinSerialize(), unsafeBitcoinSerialize()
  • Loading branch information
schildbach committed Sep 2, 2024
1 parent 7eee141 commit a1cc811
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 35 deletions.
14 changes: 0 additions & 14 deletions core/src/main/java/org/bitcoinj/core/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,4 @@ default int getMessageSize() {
* @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();
}
}
6 changes: 0 additions & 6 deletions core/src/main/java/org/bitcoinj/core/TransactionInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,6 @@ public byte[] serialize() {
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.
Expand Down
6 changes: 0 additions & 6 deletions core/src/main/java/org/bitcoinj/core/TransactionOutPoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,6 @@ public byte[] serialize() {
return write(ByteBuffer.allocate(BYTES)).array();
}

/** @deprecated use {@link #serialize()} */
@Deprecated
public byte[] bitcoinSerialize() {
return serialize();
}

/** @deprecated use {@link #BYTES} */
@Deprecated
public int getMessageSize() {
Expand Down
6 changes: 0 additions & 6 deletions core/src/main/java/org/bitcoinj/core/TransactionOutput.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,6 @@ public byte[] serialize() {
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.
Expand Down
2 changes: 0 additions & 2 deletions core/src/test/java/org/bitcoinj/core/MessageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ public class MessageTest {
@Test
public void deprecatedMembers() {
Message message = new UnknownMessage("dummy");
message.bitcoinSerialize();
message.unsafeBitcoinSerialize();
message.getMessageSize();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,5 @@ public void deprecatedMembers() {
outpoint.getHash();
outpoint.getMessageSize();
outpoint.getIndex();
outpoint.bitcoinSerialize();
}
}

0 comments on commit a1cc811

Please sign in to comment.