From 40a973348f579c55d7f10e284d187821e06d0659 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 30 Mar 2016 10:18:33 +1300 Subject: layers: remove unused getTIDIndex function and associated data This produces warning noise and nobody uses it. Signed-off-by: Chris Forbes --- layers/core_validation.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index bccca6d3..f8f38823 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -253,9 +253,6 @@ static unordered_map layer_data_map; // TODO : This can be much smarter, using separate locks for separate global data static int globalLockInitialized = 0; static loader_platform_thread_mutex globalLock; -#define MAX_TID 513 -static loader_platform_thread_id g_tidMapping[MAX_TID] = {0}; -static uint32_t g_maxTID = 0; #if MTMERGESOURCE // MTMERGESOURCE - start of direct pull static VkPhysicalDeviceMemoryProperties memProps; @@ -1023,21 +1020,6 @@ static void printCBList(layer_data *my_data, void *dispObj) { #endif -// Map actual TID to an index value and return that index -// This keeps TIDs in range from 0-MAX_TID and simplifies compares between runs -static uint32_t getTIDIndex() { - loader_platform_thread_id tid = loader_platform_get_thread_id(); - for (uint32_t i = 0; i < g_maxTID; i++) { - if (tid == g_tidMapping[i]) - return i; - } - // Don't yet have mapping, set it and return newly set index - uint32_t retVal = (uint32_t)g_maxTID; - g_tidMapping[g_maxTID++] = tid; - assert(g_maxTID < MAX_TID); - return retVal; -} - // Return a string representation of CMD_TYPE enum static string cmdTypeToString(CMD_TYPE cmd) { switch (cmd) { -- cgit v1.2.3