reader/wgsl: Remove duplicate lexer logic
See:
https://dawn-review.googlesource.com/c/tint/+/37780/1/src/reader/wgsl/lexer.cc#750
Bug: tint:286
Change-Id: I6d39fdfefad619beb65ad1d496b27925da3db8ed
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/37840
Auto-Submit: Ben Clayton <bclayton@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
diff --git a/src/reader/wgsl/lexer.cc b/src/reader/wgsl/lexer.cc
index 3d781a1..c94dba2 100644
--- a/src/reader/wgsl/lexer.cc
+++ b/src/reader/wgsl/lexer.cc
@@ -769,26 +769,6 @@
return {Token::Type::kTextureStorageReadonly3d, source,
"texture_storage_ro_3d"};
}
- if (str == "texture_storage_wo_1d") {
- return {Token::Type::kTextureStorageWriteonly1d, source,
- "texture_storage_wo_1d"};
- }
- if (str == "texture_storage_wo_1d_array") {
- return {Token::Type::kTextureStorageWriteonly1dArray, source,
- "texture_storage_wo_1d_array"};
- }
- if (str == "texture_storage_wo_2d") {
- return {Token::Type::kTextureStorageWriteonly2d, source,
- "texture_storage_wo_2d"};
- }
- if (str == "texture_storage_wo_2d_array") {
- return {Token::Type::kTextureStorageWriteonly2dArray, source,
- "texture_storage_wo_2d_array"};
- }
- if (str == "texture_storage_wo_3d") {
- return {Token::Type::kTextureStorageWriteonly3d, source,
- "texture_storage_wo_3d"};
- }
if (str == "texture_wo_1d")
return {Token::Type::kTextureStorageWriteonly1d, source, "texture_wo_1d"};
if (str == "texture_wo_1d_array") {