Removed some dead code
Talen-Shei [08-10-15 - 07:52]
diff --git a/KeyBindSwapper.lua b/KeyBindSwapper.lua
index 137bde5..30a0dd9 100644
--- a/KeyBindSwapper.lua
+++ b/KeyBindSwapper.lua
@@ -160,57 +160,6 @@ function saveBinds(profile)
profile = KBS.Character.BindingTarget
end
d("KBS: Saved to profile: "..profile)
- -- local isSafe = false
- -- local accountbound = false
- -- if profile then
- -- for i=1, #KBS.Global.AvailKeyTables do
- -- if KBS.Global.AvailKeyTables[i] == profile then
- -- isSafe = true
- -- end
- -- end
- -- elseif KBS.Account.SingleTarget == true then
- -- for i=1, #KBS.Global.AvailKeyTables do
- -- if KBS.Global.AvailKeyTables[i] == KBS.Account.BindingTarget then
- -- isSafe = true
- -- profile = KBS.Account.BindingTarget
- -- accountbound = true
- -- end
- -- end
- -- elseif accountbound == false then
- -- for i=1, #KBS.Global.AvailKeyTables do
- -- if KBS.Global.AvailKeyTables[i] == KBS.Character.BindingTarget then
- -- isSafe = true
- -- profile = KBS.Account.BindingTarget
- -- accountbound = true
- -- end
- -- end
- -- end
- -- if isSafe = true then
- -- getKeyBinds(profile)
- -- else
- -- d("Error!")
--- end
- -- if arg2 == nil then
- -- if arg1 == nil then
- -- arg1 = KBS.Character.saveType
- -- end
- -- if arg1 == "Global" then
- -- getKeyBinds(KBS.Global.KeyTables.Main)
- -- else
- -- getKeyBinds(KBS.Character.KeyTables.Main)
- -- end
- -- else
- -- if arg1 == nil then
- -- arg1 = KBS.Character.saveType
- -- end
- -- if arg1 == "Global" then
- -- KBS.Global.KeyTables[arg2] = {}
- -- getKeyBinds(KBS.Global.KeyTables[arg2])
- -- else
- -- KBS.Character.KeyTables[arg2] = {}
- -- getKeyBinds(KBS.Character.KeyTables[arg2])
- -- end
- -- end
end