diff --git a/indra/llmessage/llavatarnamecache.cpp b/indra/llmessage/llavatarnamecache.cpp
index 6dac25cd635014d601bd172734bdfa83693cd0aa..dbcb0d0c03ba49328f6e0e62bde280b983d0c4e0 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()
 {