Skip to content

Commit

Permalink
Remove unsed var
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed May 20, 2021
1 parent 947d9eb commit 9ed8904
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Code/Parrot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,11 @@ do
end

-- Init
local db = nil
local defaults = {
profile = {}
}

function Parrot:OnProfileChanged(event, database)
db = self.db.profile
for _, mod in self:IterateModules() do
if type(mod.OnProfileChanged) == "function" then
mod:OnProfileChanged(event, database)
Expand All @@ -226,7 +224,6 @@ end

function Parrot:OnInitialize()
self.db = LibStub("AceDB-3.0"):New("ParrotDB", defaults, true)
db = self.db.profile

self.db.RegisterCallback(self, "OnProfileChanged", "OnProfileChanged")
self.db.RegisterCallback(self, "OnProfileCopied", "OnProfileChanged")
Expand Down

0 comments on commit 9ed8904

Please sign in to comment.