Skip to content

Commit a5840df

Browse files
committed
remove unused
1 parent 5326cdc commit a5840df

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

src/main/java/software/amazon/awssdk/crt/http/HttpStreamBase.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -112,24 +112,6 @@ public void cancel() {
112112
}
113113
}
114114

115-
/**
116-
* Cancels the stream with a specific error code.
117-
* <p>
118-
* For HTTP/1.1 streams, this is equivalent to closing the connection.
119-
* For HTTP/2 streams, this sends a RST_STREAM frame with AWS_HTTP2_ERR_CANCEL.
120-
* <p>
121-
* The stream will complete with the provided error code, unless the stream is
122-
* already completing for other reasons, or the stream is not activated,
123-
* in which case this call will have no effect.
124-
*
125-
* @param errorCode The CRT error code to use when completing the stream.
126-
*/
127-
public void cancel(int errorCode) {
128-
if (!isNull()) {
129-
httpStreamBaseCancel(getNativeHandle(), errorCode);
130-
}
131-
}
132-
133115
/*******************************************************************************
134116
* Native methods
135117
******************************************************************************/
@@ -143,6 +125,4 @@ public void cancel(int errorCode) {
143125
private static native int httpStreamBaseGetResponseStatusCode(long http_stream);
144126

145127
private static native void httpStreamBaseCancelDefaultError(long http_stream);
146-
147-
private static native void httpStreamBaseCancel(long http_stream, int error_code);
148128
}

0 commit comments

Comments
 (0)