Skip to content

Commit

Permalink
remove unused NoResponse flag
Browse files Browse the repository at this point in the history
  • Loading branch information
vazois committed Jan 13, 2025
1 parent e5e0e15 commit ee15c4d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions libs/client/GarnetClientProcessReplies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,6 @@ unsafe int ProcessReplies(byte* recvBufferPtr, int bytesRead)
{
case TaskType.None:
return readHead;
case TaskType.NoResponse:
ConsumeTcsOffset(shortTaskId);
continue;
case TaskType.StringCallback:
if (!ProcessReplyAsString(ref ptr, end, out var resultString, out var error))
return readHead;
Expand Down
8 changes: 0 additions & 8 deletions libs/client/TcsWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ enum TaskType : int
MemoryByteArrayAsync,
LongAsync,
LongCallback,
NoResponse,
}

/// <summary>
Expand Down Expand Up @@ -109,13 +108,6 @@ public void LoadFrom(TcsWrapper source)
nextTaskId = source.nextTaskId;
}

public void LoadFrom(TaskType taskType, int nextTaskId)
{
this.taskType = taskType;
//NOTE: prevTaskId should be set last
this.nextTaskId = nextTaskId;
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public bool IsNext(int taskId) => taskId == nextTaskId;
}
Expand Down

0 comments on commit ee15c4d

Please sign in to comment.