From a1eae89f612926c53600d349c7ae5b2cd30d7e2c Mon Sep 17 00:00:00 2001 From: Cort Stratton Date: Wed, 22 Nov 2017 16:19:21 -0800 Subject: inlined commitIdLen into assert --- layers/shader_validation.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layers/shader_validation.h b/layers/shader_validation.h index ac89a200..c6e6519d 100644 --- a/layers/shader_validation.h +++ b/layers/shader_validation.h @@ -188,8 +188,7 @@ public: } private: void CommitIdToUuid(const char* commitId, uint8_t uuid[VK_UUID_SIZE]) { - size_t commitIdLen = strlen(commitId); - assert(commitIdLen/2 >= VK_UUID_SIZE); + assert(strlen(commitId)/2 >= VK_UUID_SIZE); char str[3] = {}; for (uint32_t i = 0; i < VK_UUID_SIZE; ++i) { str[0] = commitId[2 * i + 0]; -- cgit v1.2.3