From 7603944a10a06f075bac369122dba3ddcc2f6ad3 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Thu, 12 Jul 2018 20:26:44 -0400 Subject: [PATCH] Remove dead code (#1720) Remove commented out code from validate_id. --- source/val/validate_id.cpp | 437 ------------------------------------- 1 file changed, 437 deletions(-) diff --git a/source/val/validate_id.cpp b/source/val/validate_id.cpp index 710565eae..e1d76ac72 100644 --- a/source/val/validate_id.cpp +++ b/source/val/validate_id.cpp @@ -116,15 +116,6 @@ class idUsage { SPV_ERROR_INVALID_DIAGNOSTIC); \ helper -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc) { - assert(0 && "Unimplemented!"); - return false; -} -#endif // 0 - template <> bool idUsage::isValid(const spv_instruction_t* inst, const spv_opcode_desc) { @@ -284,12 +275,6 @@ bool idUsage::isValid(const spv_instruction_t* inst, return true; } -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif // 0 - template <> bool idUsage::isValid(const spv_instruction_t* inst, const spv_opcode_desc) { @@ -1143,11 +1128,6 @@ bool idUsage::isValid(const spv_instruction_t* inst, return true; } -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst) {} -#endif - template <> bool idUsage::isValid(const spv_instruction_t* inst, const spv_opcode_desc) { @@ -1585,24 +1565,6 @@ bool idUsage::isValid( return isValid(inst, opcodeEntry); } -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - template <> bool idUsage::isValid(const spv_instruction_t* inst, const spv_opcode_desc) { @@ -1903,18 +1865,6 @@ bool idUsage::isValid(const spv_instruction_t* inst, return true; } -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - template <> bool idUsage::isValid(const spv_instruction_t* inst, const spv_opcode_desc) { @@ -1964,12 +1914,6 @@ bool idUsage::isValid(const spv_instruction_t* inst, return ret; } -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - template <> bool idUsage::isValid(const spv_instruction_t* inst, const spv_opcode_desc) { @@ -2023,387 +1967,6 @@ bool idUsage::isValid(const spv_instruction_t* inst, return true; } -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) { -} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) { -} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) { -} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid(const spv_instruction_t *inst, - const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - -#if 0 -template <> -bool idUsage::isValid( - const spv_instruction_t *inst, const spv_opcode_desc opcodeEntry) {} -#endif - #undef DIAG bool idUsage::isValid(const spv_instruction_t* inst) {