wibox.set_bg: remove historical cruft

Should ideally have been removed in commit 'drawin: Remove bg_color property'.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Anurag Priyam 2012-05-06 14:49:06 +05:30 committed by Uli Schlachter
parent ceb6eb311d
commit 9dfe4fe84b
1 changed files with 0 additions and 7 deletions

View File

@ -131,13 +131,6 @@ function set_bg(wibox, c)
if type(c) == "string" or type(c) == "table" then if type(c) == "string" or type(c) == "table" then
c = color(c) c = color(c)
end end
-- If this is a solid color, propagate the background color to the capi drawin
if c:get_type() == "solid" then
local r, g, b, a = c:get_rgba()
r, g, b, a = r * 255, g * 255, b * 255, a * 255
-- Alpha isn't supported for backgrounds
colstr = string_format("#%02x%02x%02x", r, g, b)
end
wibox.background_color = c wibox.background_color = c
wibox.draw() wibox.draw()
end end