From ca3d86155c4d29c4eb31ffd05c7db0ddfb05b6f9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 14 Jul 2017 18:58:21 +0200 Subject: [PATCH] Get rid of another unused variable in wxLocale::Init() This one was defined and used only once, just remove it completely. --- src/common/intl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 45c8255f43..ee835c9d5c 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -419,7 +419,6 @@ bool wxLocale::Init(int language, int flags) } wxString name = info->Description; - wxString canonical = info->CanonicalName; // Set the locale: #if defined(__UNIX__) && !defined(__WXMAC__) @@ -579,7 +578,7 @@ bool wxLocale::Init(int language, int flags) // this language } - if ( !DoInit(name, canonical, retloc) ) + if ( !DoInit(name, info->CanonicalName, retloc) ) { ret = false; }