@@ -228,30 +228,6 @@ static void WritePrefix(IBufferWriter<byte> output, char prefix)
228228 "Unexpected result type: " + value . Type ) ;
229229 }
230230 }
231-
232- static ResultType ToResultType ( RespPrefix type ) =>
233- type switch
234- {
235- RespPrefix . None => ResultType . None ,
236- RespPrefix . SimpleString => ResultType . SimpleString ,
237- RespPrefix . SimpleError => ResultType . Error ,
238- RespPrefix . Integer => ResultType . Integer ,
239- RespPrefix . BulkString => ResultType . BulkString ,
240- RespPrefix . Array => ResultType . Array ,
241- RespPrefix . Null => ResultType . Null ,
242- RespPrefix . Boolean => ResultType . Boolean ,
243- RespPrefix . Double => ResultType . Double ,
244- RespPrefix . BigInteger => ResultType . BigInteger ,
245- RespPrefix . BulkError => ResultType . BlobError ,
246- RespPrefix . VerbatimString => ResultType . VerbatimString ,
247- RespPrefix . Map => ResultType . Map ,
248- RespPrefix . Set => ResultType . Set ,
249- RespPrefix . Push => ResultType . Push ,
250- RespPrefix . Attribute => ResultType . Attribute ,
251- // StreamContinuation and StreamTerminator don't have direct ResultType equivalents
252- // These are protocol-level markers, not result types
253- _ => throw new ArgumentOutOfRangeException ( nameof ( type ) , type , "Unexpected RespPrefix value" ) ,
254- } ;
255231 }
256232
257233 public RespPrefix ApplyProtocol ( RespPrefix type ) => IsResp2 ? ToResp2 ( type ) : type ;
0 commit comments