summaryrefslogtreecommitdiffstats
path: root/src/core/ephraim_util.erl
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2010-07-17 15:49:23 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2010-07-17 15:49:23 +0200
commitdfc0469a184ae978f40cac9df20d399fdeca99a3 (patch)
tree5bc05b375bde27de3a9f27d62df058a4b7abfc60 /src/core/ephraim_util.erl
parentb66c4b8549bc64aae8780a98851ea59850024a58 (diff)
downloadephraim-dfc0469a184ae978f40cac9df20d399fdeca99a3.tar
ephraim-dfc0469a184ae978f40cac9df20d399fdeca99a3.zip
Read JID and server name from config file
Diffstat (limited to 'src/core/ephraim_util.erl')
-rw-r--r--src/core/ephraim_util.erl18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/core/ephraim_util.erl b/src/core/ephraim_util.erl
index cdf9cea..73cb7fc 100644
--- a/src/core/ephraim_util.erl
+++ b/src/core/ephraim_util.erl
@@ -8,21 +8,3 @@ send_all(Dest, Message) ->
-spec send_all_values(dict(), term()) -> term().
send_all_values(Dest, Message) ->
dict:fold(fun(_,Value,Msg) -> Value ! Msg end, Message, Dest).
-
--spec config_path() -> string().
-config_path() ->
- Path = case os:getenv("XDG_CONFIG_HOME") of
- false ->
- os:getenv("HOME") ++ "/.config";
- ConfigHome ->
- ConfigHome
- end ++ "/ephraim",
- case file:read_file_info(Path) of
- {ok, _} ->
- ok;
- {error, _} ->
- file:make_dir(Path)
- end,
- Path.
-
-