aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2022-06-14 13:18:23 +0200
committerBadlop <badlop@process-one.net>2022-09-16 16:34:56 +0200
commitfac74f623e117fa2ce070acf20ad328dcb991ebc (patch)
treef1c4d8a2c61cf0d8995574a54dc7325bf2dbbb0b
parentRemove unused header files which content is already in xmpp library (diff)
Remove unused macro definitions detected by rebar3_hank
?OFFLINE_TABLE_LOCK_THRESHOLD is unused: definition and usage added in 4103f30812ed99c984a2fdb16aabca139c9255d7 definition copied, and usage moved to mod_offline_mnesia, in 901d2e0aed83d195a4d1cf2929114b07dcac0dd8 definition and usage removed in mod_offline_mnesia in d88e4d495ffc2ae950f77e440aa7c5d06c864309 this definition looks useless ?VERSION_MULTICAST is unused: added in 0cf8d1fa6e931367b63b133396478593146a8d07 it was never used ?DISCO_QUERY_TIMEOUT is unused: added in 0cf8d1fa6e931367b63b133396478593146a8d07 it was never used ?FEATURE/1 is unused: added in 0cf8d1fa6e931367b63b133396478593146a8d07 usage removed in bc33a3873dbb0828714eef69094213575fc979b6 ?DEFAULT_MAX_USERS_PRESENCE is unused: added in f817762cc48c13476a531bc40059cd17aea4cf0b usage removed in ba2b650464bd3aae2b6b0f3a3177476360cb6d08 ?CT_XML is unused: added in 46568fb9596d8203c635477b30c91d2928847dea removed in 3dc55c6d47e3093a6147ce275c7269a7d08ffc45
-rw-r--r--src/mod_muc_room.erl2
-rw-r--r--src/mod_multicast.erl6
-rw-r--r--src/mod_offline.erl2
3 files changed, 0 insertions, 10 deletions
diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl
index 94d574962..32ea90b2b 100644
--- a/src/mod_muc_room.erl
+++ b/src/mod_muc_room.erl
@@ -78,8 +78,6 @@
-define(MAX_USERS_DEFAULT_LIST,
[5, 10, 20, 30, 50, 100, 200, 500, 1000, 2000, 5000]).
--define(DEFAULT_MAX_USERS_PRESENCE,1000).
-
-define(MUC_HAT_ADD_CMD, <<"http://prosody.im/protocol/hats#add">>).
-define(MUC_HAT_REMOVE_CMD, <<"http://prosody.im/protocol/hats#remove">>).
-define(MUC_HAT_LIST_CMD, <<"p1:hats#list">>).
diff --git a/src/mod_multicast.erl b/src/mod_multicast.erl
index 92de4c7ad..a702f0f74 100644
--- a/src/mod_multicast.erl
+++ b/src/mod_multicast.erl
@@ -66,8 +66,6 @@
%% All the elements are of type value()
--define(VERSION_MULTICAST, <<"$Revision: 440 $ ">>).
-
-define(PURGE_PROCNAME,
ejabberd_mod_multicast_purgeloop).
@@ -79,8 +77,6 @@
-define(CACHE_PURGE_TIMER, 86400000).
--define(DISCO_QUERY_TIMEOUT, 10000).
-
-define(DEFAULT_LIMIT_LOCAL_MESSAGE, 100).
-define(DEFAULT_LIMIT_LOCAL_PRESENCE, 100).
@@ -268,8 +264,6 @@ process_iq(#iq{type = T}, _) when T == set; T == get ->
process_iq(_, _) ->
reply.
--define(FEATURE(Feat), Feat).
-
iq_disco_info(From, Lang, State) ->
Name = mod_multicast_opt:name(State#state.lserver),
#disco_info{
diff --git a/src/mod_offline.erl b/src/mod_offline.erl
index 9e7e3dffe..a66ffb20d 100644
--- a/src/mod_offline.erl
+++ b/src/mod_offline.erl
@@ -79,8 +79,6 @@
-include("translate.hrl").
--define(OFFLINE_TABLE_LOCK_THRESHOLD, 1000).
-
%% default value for the maximum number of user messages
-define(MAX_USER_MESSAGES, infinity).