awful.widget.common: remove unsed function

Signed-off-by: Lukáš Hrázký <lukkash@email.cz>
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Lukáš Hrázký 2013-01-05 16:51:14 +01:00 committed by Uli Schlachter
parent dd29a41c4e
commit 02ea5f9b23
1 changed files with 0 additions and 16 deletions

View File

@ -20,22 +20,6 @@ local textbox = require("wibox.widget.textbox")
--- Common utilities for awful widgets --- Common utilities for awful widgets
local common = {} local common = {}
-- Recursively processes a template, replacing the tables representing the icon and
-- the title with the widgets ib and tb
local function replace_in_template(t, ib, tb)
for i, v in ipairs(t) do
if type(t[i]) == "table" then
if v.item == "icon" then
t[i] = ib
elseif v.item == "title" then
t[i] = tb
else
replace_in_template(v, ib, tb)
end
end
end
end
function common.create_buttons(buttons, object) function common.create_buttons(buttons, object)
if buttons then if buttons then
local btns = {} local btns = {}