naughty: Remove dead code

Since some commits, surface.load_uncached() handles errors itself and thus we
don't have to print an error message here any more.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-01-15 18:45:44 +01:00
parent 4d562306d2
commit 9d97a98b4d
1 changed files with 1 additions and 7 deletions

View File

@ -562,13 +562,7 @@ function naughty.notify(args)
end end
-- is the icon file readable? -- is the icon file readable?
local success, res = pcall(function() return surface.load_uncached(icon) end) local icon = surface.load_uncached(icon)
if success then
icon = res
else
io.stderr:write(string.format("naughty: Couldn't load image '%s': %s\n", tostring(icon), res))
icon = nil
end
-- if we have an icon, use it -- if we have an icon, use it
if icon then if icon then