Skip to content

Commit 1744fc2

Browse files
committed
mda: delete unused hook check_domain
1 parent deb9ef7 commit 1744fc2

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

include/gromox/hook_common.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ using HOOK_FUNCTION = BOOL (*)(MESSAGE_CONTEXT *);
5151
x void (*put_context)(MESSAGE_CONTEXT *); \
5252
x void (*enqueue_context)(MESSAGE_CONTEXT *); \
5353
x BOOL (*throw_context)(MESSAGE_CONTEXT *); \
54-
x BOOL (*check_domain)(const char *); \
5554
x BOOL (*is_domainlist_valid)();
5655
#define query_service2(n, f) ((f) = reinterpret_cast<decltype(f)>(query_serviceF((n), typeid(decltype(*(f))))))
5756
#define query_service1(n) query_service2(#n, n)
@@ -82,7 +81,6 @@ DECLARE_HOOK_API(extern);
8281
query_service1(put_context); \
8382
query_service1(enqueue_context); \
8483
query_service1(throw_context); \
85-
query_service2("domain_list_query", check_domain); \
8684
query_service1(is_domainlist_valid);
8785
#define HOOK_ENTRY(s) BOOL HOOK_LibMain(int r, void **p) { return (s)((r), (p)); }
8886

mda/message_enqueue.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ static int (*get_extra_num)(int);
9090
static const char *(*get_extra_tag)(int, int);
9191
static const char *(*get_extra_value)(int, int);
9292
static BOOL (*set_flush_ID)(int);
93-
static BOOL (*check_domain)(const char *);
9493
#define query_service2(n, f) ((f) = reinterpret_cast<decltype(f)>(query_serviceF((n), typeid(decltype(*(f))))))
9594
#define query_service1(n) query_service2(#n, n)
9695

@@ -441,7 +440,6 @@ static BOOL flh_message_enqueue(int reason, void** ppdata)
441440
query_service1(get_extra_num);
442441
query_service1(get_extra_tag);
443442
query_service1(get_extra_value);
444-
query_service2("domain_list_query", check_domain);
445443
std::string plugname, filename;
446444
try {
447445
plugname = get_plugin_name();

0 commit comments

Comments
 (0)