Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
vazois committed Aug 15, 2024
1 parent 1b15cb0 commit f3d3175
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions libs/server/Resp/RespServerSessionSlotVerify.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,6 @@ bool CanServeSlot(RespCommand cmd)
}
csvi.readOnly = cmd.IsReadOnly();
csvi.sessionAsking = SessionAsking;

//csvi.firstKey = cmd switch
//{
// RespCommand.ZDIFF => 1, // ZDIFF first key comes after keyCount parameter
// _ => 0 // firstKey always starts at position zero since command name has been extracted earlier
//};

//csvi.lastKey = cmd switch
//{
// RespCommand.ZDIFF => csvi.firstKey + parseState.GetInt(0), // ZDIFF count of keys is part of parameters
// _ => commandInfo.LastKey < 0 ? commandInfo.LastKey + parseState.count + 1 : commandInfo.LastKey - commandInfo.FirstKey + 1
//};
//csvi.step = commandInfo.Step;
return !clusterSession.NetworkMultiKeySlotVerify(ref parseState, ref csvi, ref dcurr, ref dend);
}
}
Expand Down

0 comments on commit f3d3175

Please sign in to comment.