Skip to content

Commit 541a4dc

Browse files
committed
rabbit_config: Deprecate schema_dir/0
It is unused in RabbitMQ or tier-1 plugins, and the previously returned value made no sense since the switch to Cuttlefish as a library (as part of #2180).
1 parent c444cc8 commit 541a4dc

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/rabbit_config.erl

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
-module(rabbit_config).
22

33
-export([
4-
schema_dir/0,
54
config_files/0,
65
get_advanced_config/0
76
]).
87

8+
-export([schema_dir/0]).
9+
-deprecated([{schema_dir, 0, eventually}]).
10+
911
-export_type([config_location/0]).
1012

1113
-type config_location() :: string().
@@ -17,14 +19,7 @@ get_confs() ->
1719
end.
1820

1921
schema_dir() ->
20-
case init:get_argument(conf_schema_dir) of
21-
{ok, SchemaDir} -> SchemaDir;
22-
_ ->
23-
case code:priv_dir(rabbit) of
24-
{error, bad_name} -> filename:join([".", "priv", "schema"]);
25-
PrivDir -> filename:join([PrivDir, "schema"])
26-
end
27-
end.
22+
undefined.
2823

2924
get_advanced_config() ->
3025
case get_prelaunch_config_state() of

0 commit comments

Comments
 (0)