Removed unused macros and functions.
This commit is contained in:
@@ -24,17 +24,5 @@ nxt_port_t *nxt_port_hash_first(nxt_lvlhsh_t *port_hash,
|
||||
#define nxt_port_hash_next(port_hash, lhe) \
|
||||
nxt_lvlhsh_each((port_hash), (lhe))
|
||||
|
||||
#define nxt_port_hash_each(port_hash, port) \
|
||||
do { \
|
||||
nxt_lvlhsh_each_t _lhe; \
|
||||
\
|
||||
for (port = nxt_port_hash_first((port_hash), &_lhe); \
|
||||
port != NULL; \
|
||||
port = nxt_port_hash_next((port_hash), &_lhe)) { \
|
||||
|
||||
#define nxt_port_hash_loop \
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
|
||||
#endif /* _NXT_PORT_HASH_H_INCLIDED_ */
|
||||
|
||||
@@ -1846,13 +1846,6 @@ nxt_runtime_process_first(nxt_runtime_t *rt, nxt_lvlhsh_each_t *lhe)
|
||||
}
|
||||
|
||||
|
||||
nxt_port_t *
|
||||
nxt_runtime_port_first(nxt_runtime_t *rt, nxt_lvlhsh_each_t *lhe)
|
||||
{
|
||||
return nxt_port_hash_first(&rt->ports, lhe);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
nxt_runtime_port_add(nxt_task_t *task, nxt_port_t *port)
|
||||
{
|
||||
|
||||
@@ -122,12 +122,6 @@ void nxt_runtime_port_remove(nxt_task_t *task, nxt_port_t *port);
|
||||
nxt_port_t *nxt_runtime_port_find(nxt_runtime_t *rt, nxt_pid_t pid,
|
||||
nxt_port_id_t port_id);
|
||||
|
||||
nxt_port_t *nxt_runtime_port_first(nxt_runtime_t *rt,
|
||||
nxt_lvlhsh_each_t *lhe);
|
||||
|
||||
#define nxt_runtime_port_next(rt, lhe) \
|
||||
nxt_port_hash_next(&rt->ports, lhe)
|
||||
|
||||
|
||||
/* STUB */
|
||||
nxt_int_t nxt_runtime_controller_socket(nxt_task_t *task, nxt_runtime_t *rt);
|
||||
@@ -168,19 +162,6 @@ void nxt_app_data_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg);
|
||||
} while(0)
|
||||
|
||||
|
||||
#define nxt_runtime_port_each(rt, port) \
|
||||
do { \
|
||||
nxt_lvlhsh_each_t _lhe; \
|
||||
\
|
||||
for (port = nxt_runtime_port_first(rt, &_lhe); \
|
||||
port != NULL; \
|
||||
port = nxt_runtime_port_next(rt, &_lhe)) { \
|
||||
|
||||
#define nxt_runtime_port_loop \
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
|
||||
extern nxt_module_init_t nxt_init_modules[];
|
||||
extern nxt_uint_t nxt_init_modules_n;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user