24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-16 22:05:29 +02:00

Remove unused function, and unused os:type return

This commit is contained in:
Badlop 2010-06-18 13:58:45 +02:00
parent 67da88f0bd
commit a62a9b6460

View File

@ -102,16 +102,6 @@ get_menu_items(global, cluster, Lang, JID) ->
);
get_menu_items(Host, cluster, Lang, JID) ->
{Base, _, Items} = make_host_menu(Host, [], Lang, JID),
lists:map(
fun({URI, Name}) ->
{Base++URI++"/", Name};
({URI, Name, _SubMenu}) ->
{Base++URI++"/", Name}
end,
Items
);
get_menu_items(Host, Node, Lang, JID) ->
{Base, _, Items} = make_host_node_menu(Host, Node, Lang, JID),
lists:map(
fun({URI, Name}) ->
{Base++URI++"/", Name};
@ -2261,7 +2251,6 @@ get_node(global, Node, ["db"], Query, Lang) ->
get_node(global, Node, ["backup"], Query, Lang) ->
HomeDirRaw = case {os:getenv("HOME"), os:type()} of
{EnvHome, _} when is_list(EnvHome) -> EnvHome;
{false, win32} -> "C:/";
{false, {win32, _Osname}} -> "C:/";
{false, _} -> "/tmp/"
end,