Skip to content

Commit

Permalink
Remove orphaned variable.
Browse files Browse the repository at this point in the history
Remove unused `buflen`s.
  • Loading branch information
Deledrius committed Sep 8, 2023
1 parent a057e85 commit e7133ac
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/auth/pnAuthClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ bool pnAuthClient::Dispatch::dispatch(pnSocket* sock)
size_t scoreCount = msgbuf[2].fUint;
pnNetGameScore* scores = new pnNetGameScore[scoreCount];
const uint8_t* buf = msgbuf[4].fData;
size_t bufLen = msgbuf[3].fUint;
for (size_t i=0; i<scoreCount; i++) {
scores[i].fScoreId = NCReadBuffer<uint32_t>(buf);
scores[i].fOwnerId = NCReadBuffer<uint32_t>(buf);
Expand Down Expand Up @@ -321,7 +320,6 @@ bool pnAuthClient::Dispatch::dispatch(pnSocket* sock)
size_t scoreCount = msgbuf[2].fUint;
pnNetGameScore* scores = new pnNetGameScore[scoreCount];
const uint8_t* buf = msgbuf[4].fData;
size_t bufLen = msgbuf[3].fUint;
for (size_t i=0; i<scoreCount; i++) {
scores[i].fScoreId = NCReadBuffer<uint32_t>(buf);
scores[i].fOwnerId = NCReadBuffer<uint32_t>(buf);
Expand Down

0 comments on commit e7133ac

Please sign in to comment.