Skip to content

Commit 52e9b72

Browse files
Mic920x5b
authored andcommitted
btc: remove synchronous variant and dead code
1 parent 5eec03a commit 52e9b72

File tree

2 files changed

+3
-66
lines changed

2 files changed

+3
-66
lines changed

contrib/btc_all.lua

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ local string = {
1818

1919
-- Btc: provides current bitcoin price
2020
-- vicious.widgets.btc
21-
local btc_linux = {}
21+
local btc_all = {}
2222

2323

2424
-- {{ Bitcoin widget type
25-
function btc_linux.async(format, warg, callback)
25+
function btc_all.async(format, warg, callback)
2626
-- Default values
2727
if not warg then warg = "usd" end
2828

@@ -48,10 +48,4 @@ function btc_linux.async(format, warg, callback)
4848
end
4949
-- }}}
5050

51-
-- {{ Bitcoin widget type
52-
local function worker(format, warg)
53-
btc_linux.async(format, warg, function(data) return data end)
54-
end
55-
-- }}}
56-
57-
return setmetatable(btc_linux, { __call = function(_, ...) return worker(...) end })
51+
return btc_all

contrib/btc_linux.lua

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)