Commit 322e9088 authored by Max Kellermann's avatar Max Kellermann

client: removed client_get_fd()

Now that we have removed all invocations of client_get_fd(), we can safely remove this transitional function. All access to the file descriptor is now hidden behind the interface declared in client.h.
parent 4d8438e6
......@@ -317,14 +317,6 @@ void client_new(int fd, const struct sockaddr *addr)
sockaddr_to_tmp_string(addr));
}
int client_get_fd(struct client *client)
{
assert(client != NULL);
assert(client->fd >= 0);
return client->fd;
}
static int client_process_line(struct client *client)
{
int ret = 1;
......
......@@ -31,13 +31,6 @@ void client_manager_expire(void);
void client_new(int fd, const struct sockaddr *addr);
/**
* Return the file descriptor of this client's socket. This function
* will be removed once we have migrated to passing the client struct
* everywhere.
*/
int client_get_fd(struct client *client);
int client_is_expired(const struct client *client);
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment