Remove unused functions

This commit is contained in:
Paweł Marczewski
2020-09-17 18:32:09 +02:00
committed by Michał Kowalczyk
parent 52b35034ce
commit 05c5ac5149
2 changed files with 0 additions and 27 deletions
-12
View File
@@ -724,18 +724,6 @@ static inline struct link_map* __search_map_by_handle(struct shim_handle* file)
return l;
}
static inline struct link_map* __search_map_by_addr(void* addr) {
struct link_map* l = loaded_libraries;
while (l) {
if ((void*)l->l_map_start == addr)
break;
l = l->l_next;
}
return l;
}
static int __remove_elf_object(struct link_map* l) {
if (l->l_prev)
l->l_prev->l_next = l->l_next;
-15
View File
@@ -389,21 +389,6 @@ static void inet_save_addr(int domain, struct addr_inet* addr, const struct sock
}
}
static inline bool inet_comp_addr(int domain, const struct addr_inet* addr,
const struct sockaddr* saddr) {
if (domain == AF_INET) {
const struct sockaddr_in* in = (const struct sockaddr_in*)saddr;
return addr->port == __ntohs(in->sin_port) &&
!memcmp(&addr->addr.v4, &in->sin_addr, sizeof(struct in_addr));
}
if (domain == AF_INET6) {
const struct sockaddr_in6* in6 = (const struct sockaddr_in6*)saddr;
return addr->port == __ntohs(in6->sin6_port) &&
!memcmp(&addr->addr.v6, &in6->sin6_addr, sizeof(struct in6_addr));
}
return false;
}
static int create_socket_uri(struct shim_handle* hdl) {
struct shim_sock_handle* sock = &hdl->info.sock;