mirror of https://github.com/CrowCpp/Crow.git
unused variables removed
This commit is contained in:
parent
f0ff5b63d8
commit
43ab82ea27
|
@ -173,10 +173,8 @@ namespace crow
|
|||
bool isTagInsideObjectBlock(const int& current, const std::vector<context*>& stack) const
|
||||
{
|
||||
int openedBlock = 0;
|
||||
int totalBlocksBefore = 0;
|
||||
for (int i = current; i > 0; --i)
|
||||
{
|
||||
++totalBlocksBefore;
|
||||
auto& action = actions_[i - 1];
|
||||
|
||||
if (action.t == ActionType::OpenBlock)
|
||||
|
|
|
@ -51,7 +51,6 @@ char * qs_scanvalue(const char * key, const char * qs, char * val, size_t val_le
|
|||
|
||||
inline int qs_strncmp(const char * s, const char * qs, size_t n)
|
||||
{
|
||||
int i=0;
|
||||
unsigned char u1, u2, unyb, lnyb;
|
||||
|
||||
while(n-- > 0)
|
||||
|
@ -88,7 +87,6 @@ inline int qs_strncmp(const char * s, const char * qs, size_t n)
|
|||
return u1 - u2;
|
||||
if ( u1 == '\0' )
|
||||
return 0;
|
||||
i++;
|
||||
}
|
||||
if ( CROW_QS_ISQSCHR(*qs) )
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue