mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 17:01:35 +01:00
Remove redundant json decode_comment "while true"
This commit is contained in:
1 parent
5a93c63f0a
commit
7b51266642
2 files changed
-12
No files matched your search
@@ -34093,7 +34093,6 @@ wuffs_json__decoder__decode_comment(
|
||||
iop_a_src += 2;
|
||||
v_length = 2;
|
||||
label__comment_block__continue:;
|
||||
while (true) {
|
||||
while (true) {
|
||||
if (((uint64_t)(io2_a_src - iop_a_src)) <= 1) {
|
||||
if (v_length > 0) {
|
||||
@@ -34140,12 +34139,10 @@ wuffs_json__decoder__decode_comment(
|
||||
}
|
||||
v_length += 1;
|
||||
}
|
||||
}
|
||||
} else if ((v_c2 == 12079) && self->private_impl.f_quirks[12]) {
|
||||
iop_a_src += 2;
|
||||
v_length = 2;
|
||||
label__comment_line__continue:;
|
||||
while (true) {
|
||||
while (true) {
|
||||
if (((uint64_t)(io2_a_src - iop_a_src)) <= 0) {
|
||||
if (a_src && a_src->meta.closed) {
|
||||
@@ -34195,7 +34192,6 @@ wuffs_json__decoder__decode_comment(
|
||||
v_length += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ok:
|
||||
self->private_impl.p_decode_comment[0] = 0;
|
||||
|
||||
@@ -1443,9 +1443,6 @@ pri func decoder.decode_comment?(dst: base.token_writer, src: base.io_reader) {
|
||||
|
||||
while.comment_block true,
|
||||
pre args.dst.length() > 0,
|
||||
{
|
||||
while true,
|
||||
pre args.dst.length() > 0,
|
||||
{
|
||||
if args.src.length() <= 1 {
|
||||
if length > 0 {
|
||||
@@ -1499,7 +1496,6 @@ pri func decoder.decode_comment?(dst: base.token_writer, src: base.io_reader) {
|
||||
continue.comment_block
|
||||
}
|
||||
length += 1
|
||||
} endwhile
|
||||
} endwhile.comment_block
|
||||
|
||||
} else if (c2 == '//'le) and this.quirks[QUIRK_ALLOW_COMMENT_LINE - QUIRKS_BASE] {
|
||||
@@ -1508,9 +1504,6 @@ pri func decoder.decode_comment?(dst: base.token_writer, src: base.io_reader) {
|
||||
|
||||
while.comment_line true,
|
||||
pre args.dst.length() > 0,
|
||||
{
|
||||
while true,
|
||||
pre args.dst.length() > 0,
|
||||
{
|
||||
if args.src.length() <= 0 {
|
||||
if args.src.is_closed() {
|
||||
@@ -1569,7 +1562,6 @@ pri func decoder.decode_comment?(dst: base.token_writer, src: base.io_reader) {
|
||||
continue.comment_line
|
||||
}
|
||||
length += 1
|
||||
} endwhile
|
||||
} endwhile.comment_line
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user