Remove _dbus_socket_is_invalid, no longer used
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 12 Mar 2015 18:44:48 +0000 (18:44 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 12 May 2015 17:35:49 +0000 (18:35 +0100)
It didn't have many users anyway, and I've replaced them with the
DBUS_SOCKET_IS_VALID macro.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89444
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
dbus/dbus-sysdeps-unix.c
dbus/dbus-sysdeps-win.c
dbus/dbus-sysdeps.h

index 0cb1e03..2e28bd8 100644 (file)
@@ -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
index fee12b5..7d48cef 100644 (file)
@@ -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
 
 /**
index 278cd1b..54afed1 100644 (file)
@@ -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,