Remove unused string.

We saved the string in the lexer try_float for use in error messages,
then changed the message to not show the string. This CL removes the
creation of the float string.

Change-Id: I9bb381bebe31f25609c66d5ccda91de0277199cc
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/97069
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Auto-Submit: Dan Sinclair <dsinclair@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
dan sinclair 2022-07-24 19:45:17 +00:00 committed by Dawn LUCI CQ
parent 3f9cc84d0a
commit f9a43b982d
1 changed files with 0 additions and 3 deletions

View File

@ -357,9 +357,6 @@ Token Lexer::try_float() {
return {}; return {};
} }
// Save the error string, for use by diagnostics.
const auto str = std::string{substr(start, end - start)};
advance(end - start); advance(end - start);
end_source(source); end_source(source);