From 59e42e7b1b9b8950e96eb35f1c40638004f2f6c6 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 12 Mar 2015 18:44:48 +0000 Subject: [PATCH 10/11] Remove _dbus_socket_is_invalid, no longer used It didn't have many users anyway, and I've replaced them with the DBUS_SOCKET_IS_VALID macro. --- dbus/dbus-sysdeps-unix.c | 6 ------ dbus/dbus-sysdeps-win.c | 6 ------ dbus/dbus-sysdeps.h | 2 -- 3 files changed, 14 deletions(-) diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index 38a803b..db973d3 100644 --- a/dbus/dbus-sysdeps-unix.c +++ b/dbus/dbus-sysdeps-unix.c @@ -606,12 +606,6 @@ _dbus_write_socket_two (DBusSocket fd, #endif } -dbus_bool_t -_dbus_socket_is_invalid (int fd) -{ - return fd < 0 ? TRUE : FALSE; -} - /** * Thin wrapper around the read() system call that appends * the data it reads to the DBusString buffer. It appends diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 560aca9..e67821a 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -642,12 +642,6 @@ _dbus_write_socket_two (DBusSocket fd, return bytes_written; } -dbus_bool_t -_dbus_socket_is_invalid (DBusSocket fd) -{ - return fd == DBUS_SOCKET_INVALID ? TRUE : FALSE; -} - #if 0 /** diff --git a/dbus/dbus-sysdeps.h b/dbus/dbus-sysdeps.h index 44f0e49..4290edf 100644 --- a/dbus/dbus-sysdeps.h +++ b/dbus/dbus-sysdeps.h @@ -209,8 +209,6 @@ int _dbus_write_socket_with_unix_fds_two (DBusSocket fd, const int *fds, int n_fds); -dbus_bool_t _dbus_socket_is_invalid (DBusSocket fd); - DBusSocket _dbus_connect_tcp_socket (const char *host, const char *port, const char *family, -- 2.1.4