Remove dead code

This commit is contained in:
2025-06-23 11:53:39 -04:00
parent e477ff095a
commit 56fc45ab52

View File

@@ -702,7 +702,6 @@ struct Parser3 {
if (done || len > 0) {
callbacks->on_string_data(userdata, dataBegin, len, done);
}
dataBegin = writeBuf;
}
[[nodiscard]] bool empty() const { return stackPtr == stack(); }
@@ -1175,28 +1174,6 @@ inline PRESERVE_NONE WeaselJsonStatus n_string_following_escape(Parser3 *self,
}
}
inline PRESERVE_NONE WeaselJsonStatus t_digit(Parser3 *self, char *buf,
char *bufEnd) {
if ('0' <= *buf && *buf <= '9') {
++buf;
self->pop();
MUSTTAIL return Parser3::keepGoing(self, buf, bufEnd);
} else [[unlikely]] {
return WeaselJson_REJECT;
}
}
inline PRESERVE_NONE WeaselJsonStatus t_onenine(Parser3 *self, char *buf,
char *bufEnd) {
if ('1' <= *buf && *buf <= '9') {
++buf;
self->pop();
MUSTTAIL return Parser3::keepGoing(self, buf, bufEnd);
} else [[unlikely]] {
return WeaselJson_REJECT;
}
}
inline PRESERVE_NONE WeaselJsonStatus t_hex(Parser3 *self, char *buf,
char *bufEnd) {
self->utf8Codepoint <<= 4;
@@ -1399,13 +1376,6 @@ inline PRESERVE_NONE WeaselJsonStatus t_eof(Parser3 *self, char *buf,
return self->complete ? WeaselJson_OK : WeaselJson_AGAIN;
}
inline PRESERVE_NONE WeaselJsonStatus t_end_number(Parser3 *self, char *buf,
char *bufEnd) {
self->pop();
self->flushNumber(true, buf);
MUSTTAIL return Parser3::keepGoing(self, buf, bufEnd);
}
constexpr inline struct ContinuationTable {
constexpr ContinuationTable() {
// Defaults