From a64cd6c86438636b031e1204057b27a8b9673296 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 1 Jun 2017 09:20:41 -0400 Subject: Remove unused Locale code This CL removes unused code from CFGAS_FormatString and CXFA_LocaleValue. Change-Id: I87a996231b3ad3770508be362456c435034b229c Reviewed-on: https://pdfium-review.googlesource.com/6177 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- xfa/fgas/crt/cfgas_formatstring.cpp | 21 --------------------- xfa/fgas/crt/cfgas_formatstring.h | 1 - 2 files changed, 22 deletions(-) (limited to 'xfa/fgas') diff --git a/xfa/fgas/crt/cfgas_formatstring.cpp b/xfa/fgas/crt/cfgas_formatstring.cpp index 0c2e307b7c..30dba7bf99 100644 --- a/xfa/fgas/crt/cfgas_formatstring.cpp +++ b/xfa/fgas/crt/cfgas_formatstring.cpp @@ -1158,27 +1158,6 @@ FX_LOCALECATEGORY CFGAS_FormatString::GetCategory( return eCategory; } -CFX_WideString CFGAS_FormatString::GetLocaleName( - const CFX_WideString& wsPattern) { - int32_t ccf = 0; - int32_t iLenf = wsPattern.GetLength(); - const wchar_t* pStr = wsPattern.c_str(); - while (ccf < iLenf) { - if (pStr[ccf] == '\'') { - GetLiteralText(pStr, ccf, iLenf); - } else if (pStr[ccf] == '(') { - ccf++; - CFX_WideString wsLCID; - while (ccf < iLenf && pStr[ccf] != ')') { - wsLCID += pStr[ccf++]; - } - return wsLCID; - } - ccf++; - } - return CFX_WideString(); -} - IFX_Locale* CFGAS_FormatString::GetTextFormat(const CFX_WideString& wsPattern, const CFX_WideStringC& wsCategory, CFX_WideString& wsPurgePattern) { diff --git a/xfa/fgas/crt/cfgas_formatstring.h b/xfa/fgas/crt/cfgas_formatstring.h index d2d35a3042..be3c310fa5 100644 --- a/xfa/fgas/crt/cfgas_formatstring.h +++ b/xfa/fgas/crt/cfgas_formatstring.h @@ -25,7 +25,6 @@ class CFGAS_FormatString { void SplitFormatString(const CFX_WideString& wsFormatString, std::vector& wsPatterns); FX_LOCALECATEGORY GetCategory(const CFX_WideString& wsPattern); - CFX_WideString GetLocaleName(const CFX_WideString& wsPattern); bool ParseText(const CFX_WideString& wsSrcText, const CFX_WideString& wsPattern, CFX_WideString& wsValue); -- cgit v1.2.3