From 02ea5f9b238c691bc9cd91590ff69a998c2ec1e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hr=C3=A1zk=C3=BD?= Date: Sat, 5 Jan 2013 16:51:14 +0100 Subject: [PATCH] awful.widget.common: remove unsed function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lukáš Hrázký Signed-off-by: Uli Schlachter --- lib/awful/widget/common.lua.in | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lib/awful/widget/common.lua.in b/lib/awful/widget/common.lua.in index 29faf95c..d6c2a9f1 100644 --- a/lib/awful/widget/common.lua.in +++ b/lib/awful/widget/common.lua.in @@ -20,22 +20,6 @@ local textbox = require("wibox.widget.textbox") --- Common utilities for awful widgets 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) if buttons then local btns = {}