links: remove unused global links_init and links_step

This commit is contained in:
Kamil Trzcinski 2023-02-24 00:19:49 +01:00
parent 53bfdcfedf
commit bf14b915eb
2 changed files with 3 additions and 5 deletions

View File

@ -174,7 +174,7 @@ error:
return -1; return -1;
} }
void print_pollfds(struct pollfd *fds, int n) static void print_pollfds(struct pollfd *fds, int n)
{ {
if (!getenv("DEBUG_FDS")) { if (!getenv("DEBUG_FDS")) {
return; return;
@ -186,7 +186,7 @@ void print_pollfds(struct pollfd *fds, int n)
printf("pollfds = %d\n", n); printf("pollfds = %d\n", n);
} }
int links_step(link_t *all_links, int timeout_now_ms, int *timeout_next_ms) static int links_step(link_t *all_links, int timeout_now_ms, int *timeout_next_ms)
{ {
struct pollfd fds[N_FDS] = {0}; struct pollfd fds[N_FDS] = {0};
link_t *links[N_FDS]; link_t *links[N_FDS];
@ -282,7 +282,7 @@ int links_step(link_t *all_links, int timeout_now_ms, int *timeout_next_ms)
return 0; return 0;
} }
int links_stream(link_t *all_links, bool do_stream) static int links_stream(link_t *all_links, bool do_stream)
{ {
for (int i = 0; all_links[i].source; i++) { for (int i = 0; all_links[i].source; i++) {
bool streaming = true; bool streaming = true;

View File

@ -29,7 +29,5 @@ typedef struct link_s {
int n_callbacks; int n_callbacks;
} link_t; } link_t;
int links_init(link_t *all_links);
int links_step(link_t *all_links, int timeout_now_ms, int *timeout_next_ms);
int links_loop(link_t *all_links, bool *running); int links_loop(link_t *all_links, bool *running);
void links_dump(link_t *all_links); void links_dump(link_t *all_links);