Mercurial > prosody-hg
comparison core/storagemanager.lua @ 5137:df9665f3dfd8
storagemanager: Remove unused variable
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 19 Sep 2012 16:40:38 +0200 |
| parents | 77ea38607a89 |
| children | a207d4bff5a4 |
comparison
equal
deleted
inserted
replaced
| 5136:77ea38607a89 | 5137:df9665f3dfd8 |
|---|---|
| 94 return ret, err; | 94 return ret, err; |
| 95 end | 95 end |
| 96 | 96 |
| 97 function purge(user, host) | 97 function purge(user, host) |
| 98 local storage = config.get(host, "storage"); | 98 local storage = config.get(host, "storage"); |
| 99 local driver_name; | |
| 100 if type(storage) == "table" then | 99 if type(storage) == "table" then |
| 101 -- multiple storage backends in use that we need to purge | 100 -- multiple storage backends in use that we need to purge |
| 102 local purged = {}; | 101 local purged = {}; |
| 103 for store, driver in pairs(storage) do | 102 for store, driver in pairs(storage) do |
| 104 if not purged[driver] then | 103 if not purged[driver] then |
