From 1f14595723a5863fca12896d808abd688a5c441b Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Thu, 14 Jan 2021 14:15:02 +0000 Subject: [PATCH] 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 Commit-Queue: dan sinclair Reviewed-by: dan sinclair --- src/reader/wgsl/lexer.cc | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/reader/wgsl/lexer.cc b/src/reader/wgsl/lexer.cc index 3d781a1aee..c94dba2d16 100644 --- a/src/reader/wgsl/lexer.cc +++ b/src/reader/wgsl/lexer.cc @@ -769,26 +769,6 @@ Token Lexer::check_keyword(const Source& source, const std::string& str) { 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") {