From 90d9ef3a5dc99b32c5686aa8cfb1066716fc56f6 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 17 Aug 2022 11:54:39 +0200 Subject: [PATCH] available_themes(xdata) is useless since 721ca125 --- mod_webpresence/src/mod_webpresence.erl | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/mod_webpresence/src/mod_webpresence.erl b/mod_webpresence/src/mod_webpresence.erl index 99b3af7..044dc37 100644 --- a/mod_webpresence/src/mod_webpresence.erl +++ b/mod_webpresence/src/mod_webpresence.erl @@ -757,23 +757,7 @@ available_themes(list) -> [T || T <- L2, hd(T) =/= 46]; {error, _} -> [] - end; - -available_themes(xdata) -> - lists:map( - fun(Theme) -> - #xmlel{ - name = <<"option">>, - attrs = [{<<"label">>, iolist_to_binary(Theme)}], - children = [ - #xmlel{ - name = <<"value">>, - attrs = [], - children = [{xmlcdata, iolist_to_binary(Theme)}] - } - ] - } - end, available_themes(list)). + end. show_presence({image_no_check, Theme, Pr}) -> Dir = get_pixmaps_directory(),