From 9101a5ce4fd17d1b02a5aa153b03e946f2c68163 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 28 Jan 2019 08:00:56 +0100 Subject: [PATCH] src/core: remove unused var in lang --- sonic-radiance.love/core/lang.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sonic-radiance.love/core/lang.lua b/sonic-radiance.love/core/lang.lua index ddcb2d8..f08febe 100644 --- a/sonic-radiance.love/core/lang.lua +++ b/sonic-radiance.love/core/lang.lua @@ -44,12 +44,8 @@ function LanguageManager:getCurrentLangName() end function LanguageManager:setLang(lang) - self.controller.options.data.language = lang - self.lang = self.controller.options.data.language - self.langfiles = langs.files - self.currentLang = self.langfiles[self.lang] - self.data = require(self.currentLang) - self.fallback = require(self.langfiles["en"]) + self.controller.options.data.language = lang + self.lang = self.controller.options.data.language end return LanguageManager