]> granicus.if.org Git - ejabberd/commitdiff
Get rid of compile warnings
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Fri, 25 Nov 2016 06:48:26 +0000 (09:48 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Fri, 25 Nov 2016 06:48:26 +0000 (09:48 +0300)
src/ejabberd_ctl.erl
src/ejabberd_xmlrpc.erl
src/mod_http_api.erl
src/mod_privacy_sql.erl

index a96a28016006fc3dd8bf520924dad8477d102bc7..63adcdf69ee255e69e77c10b8eec9fc5a52edd52 100644 (file)
@@ -311,7 +311,7 @@ try_call_command(Args, Auth, AccessCommands, Version) ->
     end.
 
 %% @spec (Args::[string()], Auth, AccessCommands) -> string() | integer() | {string(), integer()} | {error, ErrorType}
-call_command([CmdString | Args], Auth, AccessCommands, Version) ->
+call_command([CmdString | Args], Auth, _AccessCommands, Version) ->
     CmdStringU = ejabberd_regexp:greplace(
                    list_to_binary(CmdString), <<"-">>, <<"_">>),
     Command = list_to_atom(binary_to_list(CmdStringU)),
index 1b795d3fd765d5f3871a7d141ed3fba6d42cdc4d..2792d08c1b174c1ec8e742c63fde7dfae26d9a02 100644 (file)
@@ -216,10 +216,10 @@ process(_, #request{method = 'POST', data = Data, opts = Opts, ip = {IP, _}}) ->
                                                         L),
                                                L
                                        end, all),
-                          CommOpts = gen_mod:get_opt(
-                                       options, AcOpts,
-                                       fun(L) when is_list(L) -> L end,
-                                       []),
+                          %% CommOpts = gen_mod:get_opt(
+                          %%              options, AcOpts,
+                          %%              fun(L) when is_list(L) -> L end,
+                          %%              []),
                          [{<<"ejabberd_xmlrpc compatibility shim">>, {[?MODULE], [{access, Ac}], Commands}}];
                      (Wrong) ->
                           ?WARNING_MSG("wrong options format for ~p: ~p",
index a189777b15220ca7e43a93af82270881bbedf886..3700060cb43937e362c351a2c7ea4b0b1443eecb 100644 (file)
@@ -503,8 +503,8 @@ unauthorized_response() ->
 invalid_token_response() ->
     json_error(401, 10, <<"Oauth Token is invalid or expired.">>).
 
-outofscope_response() ->
-    json_error(401, 11, <<"Token does not grant usage to command required scope.">>).
+%% outofscope_response() ->
+%%     json_error(401, 11, <<"Token does not grant usage to command required scope.">>).
 
 badrequest_response() ->
     badrequest_response(<<"400 Bad Request">>).
index a39e36766001d33cf4b3c40fe7db6a05e468faad..1984237c69b710bd371a1dfa9d91b813b7f7d80b 100644 (file)
@@ -334,9 +334,6 @@ sql_get_privacy_list_id_t(LUser, Name) ->
 sql_get_privacy_list_data(LUser, LServer, Name) ->
     sql_queries:get_privacy_list_data(LServer, LUser, Name).
 
-sql_get_privacy_list_data_t(LUser, Name) ->
-    sql_queries:get_privacy_list_data_t(LUser, Name).
-
 sql_get_privacy_list_data_by_id(ID, LServer) ->
     sql_queries:get_privacy_list_data_by_id(LServer, ID).