Skip to content

Commit

Permalink
Cooldowns: Remove some old compat code
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Jul 10, 2017
1 parent ef94f7f commit 3eac541
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions modules/Cooldowns/Registry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,33 +70,7 @@ local function copyDefaults(dst, src)
end
end

-- XXX locales as of r895
local translateType = {
--esES
["Barras"] = "Bars",
["Iconos"] = "Icons",
["Grupos de iconos"] = "Icon Groups",
["Registro"] = "Log",
--deDE
["Leisten"] = "Bars",
["Icon Gruppen"] = "Icon Groups",
--frFR
["Barres"] = "Bars",
["Icônes"] = "Icons",
["Groupes d'icônes"] = "Icon Groups",
["Journal"] = "Log",
}

function module:CreateDisplay(type, name)
-- XXX I dun fucked up and localized my unique index
if not layoutRegistry[type] and translateType[type] then
local newType = translateType[type]
local db = module.db.profile.displays[name]
if db.type and db.type == type then
db.type = newType
end
type = newType
end
if layoutRegistry[type] then
local display = layoutRegistry[type](name)
display.name = name
Expand All @@ -105,7 +79,7 @@ function module:CreateDisplay(type, name)
display.version = layoutVersions[type]

-- init db
local moduleDB = module.db.profile
local moduleDB = self.db.profile
local db = moduleDB.displays[name]

-- reset settings on type change
Expand Down

0 comments on commit 3eac541

Please sign in to comment.