File tree Expand file tree Collapse file tree
core/src/main/java/io/grpc
netty/src/test/java/io/grpc/transport/netty Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3131
3232package io .grpc .transport .netty ;
3333
34- import static io .grpc .GrpcFramingUtil .STATUS_FRAME ;
3534import static io .netty .util .CharsetUtil .UTF_8 ;
3635
3736import 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 );
You can’t perform that action at this time.
0 commit comments