From a7041d0a442df98e5a1c938ce9b096f7279b96f7 Mon Sep 17 00:00:00 2001
From: James Cook <james@lindenlab.com>
Date: Tue, 16 Feb 2010 12:07:02 -0800
Subject: [PATCH] Fix Linux build warning/error for unused function

---
 indra/llmessage/llavatarnamecache.cpp | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/indra/llmessage/llavatarnamecache.cpp b/indra/llmessage/llavatarnamecache.cpp
index 6dac25cd635..dbcb0d0c03b 100644
--- a/indra/llmessage/llavatarnamecache.cpp
+++ b/indra/llmessage/llavatarnamecache.cpp
@@ -43,19 +43,20 @@ namespace LLAvatarNameCache
 	std::map<LLUUID, LLAvatarName> sCache;
 }
 
-static std::string slid_from_full_name(const std::string& full_name)
-{
-	std::string id = full_name;
-	std::string::size_type end = id.length();
-	for (std::string::size_type i = 0; i < end; ++i)
-	{
-		if (id[i] == ' ')
-			id[i] = '.';
-		else
-			id[i] = tolower(id[i]);
-	}
-	return id;
-}
+// JAMESDEBUG re-enable when display names are turned on
+//static std::string slid_from_full_name(const std::string& full_name)
+//{
+//	std::string id = full_name;
+//	std::string::size_type end = id.length();
+//	for (std::string::size_type i = 0; i < end; ++i)
+//	{
+//		if (id[i] == ' ')
+//			id[i] = '.';
+//		else
+//			id[i] = tolower(id[i]);
+//	}
+//	return id;
+//}
 
 void LLAvatarNameCache::initClass()
 {
-- 
GitLab