Skip to content

Commit

Permalink
[Class] Remove unused lua functions localized
Browse files Browse the repository at this point in the history
  • Loading branch information
aethys256 committed Oct 13, 2017
1 parent f6c3cd2 commit 82529c1
Show file tree
Hide file tree
Showing 21 changed files with 15 additions and 153 deletions.
1 change: 1 addition & 0 deletions AethysCore/Class/Main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
local setmetatable = setmetatable;
local stringformat = string.format;
-- File Locals



--- ============================ CONTENT ============================
Expand Down
9 changes: 1 addition & 8 deletions AethysCore/Class/Spell/Artifact.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,10 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local error = error;
local mathmax = math.max;
local pairs = pairs;
local print = print;
local select = select;
local tableinsert = table.insert;
local tostring = tostring;
local unpack = unpack;
local wipe = table.wipe;
-- File Locals



--- ============================ CONTENT ============================
Expand Down Expand Up @@ -49,7 +43,6 @@
-- GetPowerInfo() returns a table and not multiple values unlike most WoW API.
-- offset, prereqsMet, cost, bonusRanks, maxRanks, linearIndex, position, isFinal, numMaxRankBonusFromTier, tier, isGoldMedal, isStart, currentRank, spellID
PowerInfo = ArtifactUI.GetPowerInfo(Power);
--tableinsert(PowerTable, PowerInfo);
PowerTableByPowerID[Power] = PowerInfo;
PowerTableBySpellID[PowerInfo.spellID] = PowerInfo;
end
Expand Down
9 changes: 1 addition & 8 deletions AethysCore/Class/Spell/Book.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,9 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local error = error;
local mathmax = math.max;
local pairs = pairs;
local print = print;
local select = select;
local tableinsert = table.insert;
local tostring = tostring;
local unpack = unpack;
local wipe = table.wipe;
-- File Locals



--- ============================ CONTENT ============================
Expand Down
8 changes: 1 addition & 7 deletions AethysCore/Class/Spell/Cooldown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,10 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local error = error;
local mathmax = math.max;
local pairs = pairs;
local print = print;
local select = select;
local tableinsert = table.insert;
local tostring = tostring;
local unpack = unpack;
local wipe = table.wipe;
-- File Locals



--- ============================ CONTENT ============================
Expand Down
7 changes: 1 addition & 6 deletions AethysCore/Class/Spell/Main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,11 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local error = error;
local mathmax = math.max;
local pairs = pairs;
local print = print;
local select = select;
local tableinsert = table.insert;
local tostring = tostring;
local unpack = unpack;
local wipe = table.wipe;
-- File Locals



--- ============================ CONTENT ============================
Expand Down
9 changes: 1 addition & 8 deletions AethysCore/Class/Spell/Travel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,9 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local error = error;
local mathmax = math.max;
local pairs = pairs;
local print = print;
local select = select;
local tableinsert = table.insert;
local tostring = tostring;
local unpack = unpack;
local wipe = table.wipe;
-- File Locals



--- ============================ CONTENT ============================
Expand Down
12 changes: 0 additions & 12 deletions AethysCore/Class/Unit/Aura.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,7 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local mathfloor = math.floor;
local mathmin = math.min;
local mathrandom = math.random;
local pairs = pairs;
local select = select;
local tableinsert = table.insert;
local tableremove = table.remove;
local tablesort = table.sort;
local tonumber = tonumber;
local tostring = tostring;
local type = type;
local unpack = unpack;
local wipe = table.wipe;
-- File Locals


Expand Down
12 changes: 0 additions & 12 deletions AethysCore/Class/Unit/Cast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,7 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local mathfloor = math.floor;
local mathmin = math.min;
local mathrandom = math.random;
local pairs = pairs;
local select = select;
local tableinsert = table.insert;
local tableremove = table.remove;
local tablesort = table.sort;
local tonumber = tonumber;
local tostring = tostring;
local type = type;
local unpack = unpack;
local wipe = table.wipe;
-- File Locals


Expand Down
16 changes: 2 additions & 14 deletions AethysCore/Class/Unit/Control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,9 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local mathfloor = math.floor;
local mathmin = math.min;
local mathrandom = math.random;
local pairs = pairs;
local select = select;
local tableinsert = table.insert;
local tableremove = table.remove;
local tablesort = table.sort;
local tonumber = tonumber;
local tostring = tostring;
local type = type;
local unpack = unpack;
local wipe = table.wipe;

-- File Locals



--- ============================ CONTENT ============================
Expand Down
14 changes: 1 addition & 13 deletions AethysCore/Class/Unit/List.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,9 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local mathfloor = math.floor;
local mathmin = math.min;
local mathrandom = math.random;
local pairs = pairs;
local select = select;
local tableinsert = table.insert;
local tableremove = table.remove;
local tablesort = table.sort;
local tonumber = tonumber;
local tostring = tostring;
local type = type;
local unpack = unpack;
local wipe = table.wipe;
-- File Locals



--- ============================ CONTENT ============================
Expand Down
14 changes: 1 addition & 13 deletions AethysCore/Class/Unit/Main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,9 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local mathfloor = math.floor;
local mathmin = math.min;
local mathrandom = math.random;
local pairs = pairs;
local select = select;
local tableinsert = table.insert;
local tableremove = table.remove;
local tablesort = table.sort;
local tonumber = tonumber;
local tostring = tostring;
local type = type;
local unpack = unpack;
local wipe = table.wipe;
-- File Locals
local BossUnits = Unit.Boss;



--- ============================ CONTENT ============================
Expand Down
3 changes: 0 additions & 3 deletions AethysCore/Class/Unit/Player/Aura.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local pairs = pairs;
local select = select;
local tablesort = table.sort;
local tostring = tostring;
-- File Locals

Expand Down
2 changes: 0 additions & 2 deletions AethysCore/Class/Unit/Player/Equipment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
-- Lua
local pairs = pairs;
local select = select;
local tablesort = table.sort;
local tostring = tostring;
-- File Locals


Expand Down
5 changes: 1 addition & 4 deletions AethysCore/Class/Unit/Player/Instance.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local pairs = pairs;
local select = select;
local tablesort = table.sort;
local tostring = tostring;

-- File Locals


Expand Down
9 changes: 1 addition & 8 deletions AethysCore/Class/Unit/Player/Main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local pairs = pairs;
local select = select;
local tablesort = table.sort;
local tostring = tostring;

-- File Locals


Expand Down Expand Up @@ -120,7 +117,3 @@
end
return false;
end




3 changes: 0 additions & 3 deletions AethysCore/Class/Unit/Player/MythicDungeon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
local Item = AC.Item;
-- Lua
local pairs = pairs;
local select = select;
local tablesort = table.sort;
local tostring = tostring;
-- File Locals


Expand Down
1 change: 0 additions & 1 deletion AethysCore/Class/Unit/Player/Power.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
local pairs = pairs;
local select = select;
local tablesort = table.sort;
local tostring = tostring;
-- File Locals


Expand Down
5 changes: 1 addition & 4 deletions AethysCore/Class/Unit/Player/Stat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local pairs = pairs;
local select = select;
local tablesort = table.sort;
local tostring = tostring;

-- File Locals


Expand Down
14 changes: 1 addition & 13 deletions AethysCore/Class/Unit/Power.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,9 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local mathfloor = math.floor;
local mathmin = math.min;
local mathrandom = math.random;
local pairs = pairs;
local select = select;
local tableinsert = table.insert;
local tableremove = table.remove;
local tablesort = table.sort;
local tonumber = tonumber;
local tostring = tostring;
local type = type;
local unpack = unpack;
local wipe = table.wipe;
-- File Locals



--- ============================ CONTENT ============================
Expand Down
9 changes: 1 addition & 8 deletions AethysCore/Class/Unit/Range.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,14 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local mathfloor = math.floor;
local mathmin = math.min;
local mathrandom = math.random;
local pairs = pairs;
local select = select;
local tableinsert = table.insert;
local tableremove = table.remove;
local tablesort = table.sort;
local tonumber = tonumber;
local tostring = tostring;
local type = type;
local unpack = unpack;
local wipe = table.wipe;
-- File Locals



--- ============================ CONTENT ============================
Expand Down
6 changes: 0 additions & 6 deletions AethysCore/Class/Unit/TimeToDie.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,10 @@
local Spell = AC.Spell;
local Item = AC.Item;
-- Lua
local mathfloor = math.floor;
local mathmin = math.min;
local mathrandom = math.random;
local pairs = pairs;
local select = select;
local tableinsert = table.insert;
local tableremove = table.remove;
local tablesort = table.sort;
local tonumber = tonumber;
local tostring = tostring;
local type = type;
local unpack = unpack;
local wipe = table.wipe;
Expand Down

0 comments on commit 82529c1

Please sign in to comment.