From b09e7049c4d24ca235aeeff468257c9a7209ab5f Mon Sep 17 00:00:00 2001
From: David Abram Cargill <cargilld@apache.org>
Date: Sun, 3 Dec 2006 22:08:51 +0000
Subject: [PATCH] Remove unused variable, no getter.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@481946 13f79535-47bb-0310-9956-ffa450edef68
---
 src/xercesc/util/XMLMsgLoader.cpp | 9 +--------
 src/xercesc/util/XMLMsgLoader.hpp | 1 -
 2 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/src/xercesc/util/XMLMsgLoader.cpp b/src/xercesc/util/XMLMsgLoader.cpp
index fd9a92be5..9ceb2faf9 100644
--- a/src/xercesc/util/XMLMsgLoader.cpp
+++ b/src/xercesc/util/XMLMsgLoader.cpp
@@ -65,14 +65,7 @@ void  XMLMsgLoader::setLocale(const char* const localeToAdopt)
      */
     if (localeToAdopt && (strlen(localeToAdopt) == 2 || (strlen(localeToAdopt) > 3 && localeToAdopt[2]=='_')))
     {
-        XMLCh *transcoded = XMLString::transcode(localeToAdopt, XMLPlatformUtils::fgMemoryManager);
-        if (transcoded[0] && transcoded[1] && (!transcoded[2] || transcoded[2]==chUnderscore))
-        {
-            fLocale   = XMLString::replicate(localeToAdopt, XMLPlatformUtils::fgMemoryManager);
-            memcpy(fLanguage, transcoded, 2 * sizeof(XMLCh));
-            fLanguage[2]=0;
-            XMLPlatformUtils::fgMemoryManager->deallocate(transcoded);
-        }
+        fLocale   = XMLString::replicate(localeToAdopt, XMLPlatformUtils::fgMemoryManager);                   
     }
 
 }
diff --git a/src/xercesc/util/XMLMsgLoader.hpp b/src/xercesc/util/XMLMsgLoader.hpp
index 637c355dd..55616da79 100644
--- a/src/xercesc/util/XMLMsgLoader.hpp
+++ b/src/xercesc/util/XMLMsgLoader.hpp
@@ -160,7 +160,6 @@ private :
     // -----------------------------------------------------------------------
     static char*    fLocale;
     static char*    fPath;
-    static XMLCh    fLanguage[];
 };
 
 
-- 
GitLab