Simplifications

This commit is contained in:
2025-05-14 20:04:03 -04:00
parent 318fe49c31
commit adbdae5730

View File

@@ -465,9 +465,6 @@ private:
break; break;
} }
} }
if (buf == bufBefore) {
return false;
}
callbacks->on_number_data(data, bufBefore, buf - bufBefore); callbacks->on_number_data(data, bufBefore, buf - bufBefore);
callbacks->on_end_number(data); callbacks->on_end_number(data);
return true; return true;
@@ -628,7 +625,7 @@ private:
char *buf; char *buf;
char *bufEnd; char *bufEnd;
int len() { return bufEnd - buf; } int len() const { return bufEnd - buf; }
const Callbacks *const callbacks; const Callbacks *const callbacks;
void *const data; void *const data;
Symbol stack[kMaxStackSize]; Symbol stack[kMaxStackSize];