Remove some redundant assignments after yields

This commit is contained in:
Nigel Tao committed 2022-01-25 20:37:50 +11:00
1 parent b374b2b34f
commit 656c0bdf92
2 files changed
-6

No files matched your search

-3
View File
@@ -32866,7 +32866,6 @@ wuffs_json__decoder__decode_tokens(
}
status = wuffs_base__make_status(wuffs_base__suspension__short_read);
WUFFS_BASE__COROUTINE_SUSPENSION_POINT_MAYBE_SUSPEND(3);
v_whitespace_length = 0;
goto label__outer__continue;
}
v_c = wuffs_base__peek_u8be__no_bounds_check(iop_a_src);
@@ -32928,7 +32927,6 @@ wuffs_json__decoder__decode_tokens(
}
status = wuffs_base__make_status(wuffs_base__suspension__short_read);
WUFFS_BASE__COROUTINE_SUSPENSION_POINT_MAYBE_SUSPEND(5);
v_string_length = 0;
goto label__string_loop_outer__continue;
}
while (((uint64_t)(io2_a_src - iop_a_src)) > 4) {
@@ -34468,7 +34466,6 @@ wuffs_json__decoder__decode_trailer(
if (status.repr) {
goto suspend;
}
v_c = 0;
if (self->private_impl.f_comment_type > 0) {
goto label__outer__continue;
}
-3
View File
@@ -167,7 +167,6 @@ pub func decoder.decode_tokens?(dst: base.token_writer, src: base.io_reader, wor
return "#bad input"
}
yield? base."$short read"
whitespace_length = 0
continue.outer
}
@@ -255,7 +254,6 @@ pub func decoder.decode_tokens?(dst: base.token_writer, src: base.io_reader, wor
return "#bad input"
}
yield? base."$short read"
string_length = 0
continue.string_loop_outer
}
@@ -1717,7 +1715,6 @@ pri func decoder.decode_trailer?(dst: base.token_writer, src: base.io_reader) {
return "#bad input"
}
this.decode_comment?(dst: args.dst, src: args.src)
c = 0
if this.comment_type > 0 {
continue.outer
}