Skip to content

Commit 425e3c0

Browse files
author
Louis Ryan
committed
Remove dead GrpcFramingUtil class
1 parent 95c6f50 commit 425e3c0

2 files changed

Lines changed: 0 additions & 89 deletions

File tree

core/src/main/java/io/grpc/GrpcFramingUtil.java

Lines changed: 0 additions & 75 deletions
This file was deleted.

netty/src/test/java/io/grpc/transport/netty/NettyTestUtil.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
package io.grpc.transport.netty;
3333

34-
import static io.grpc.GrpcFramingUtil.STATUS_FRAME;
3534
import static io.netty.util.CharsetUtil.UTF_8;
3635

3736
import com.google.common.io.ByteStreams;
@@ -65,19 +64,6 @@ static ByteBuf messageFrame(String message) throws Exception {
6564
return compressionFrame(os.toByteArray());
6665
}
6766

68-
static ByteBuf statusFrame(Status status) throws Exception {
69-
ByteArrayOutputStream os = new ByteArrayOutputStream();
70-
DataOutputStream dos = new DataOutputStream(os);
71-
short code = (short) status.getCode().value();
72-
dos.write(STATUS_FRAME);
73-
int length = 2;
74-
dos.writeInt(length);
75-
dos.writeShort(code);
76-
77-
// Write the compression header followed by the context frame.
78-
return compressionFrame(os.toByteArray());
79-
}
80-
8167
static ByteBuf compressionFrame(byte[] data) {
8268
ByteBuf buf = Unpooled.buffer();
8369
buf.writeByte(0);

0 commit comments

Comments
 (0)