[newlib-cygwin] Cygwin: eliminate unused fhandler method hclose

Corinna Vinschen corinna@sourceware.org
Fri Feb 23 14:24:00 GMT 2018


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=cc9fe2c71651bf0d88e549d58656194860f5497e

commit cc9fe2c71651bf0d88e549d58656194860f5497e
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Fri Feb 23 14:56:30 2018 +0100

    Cygwin: eliminate unused fhandler method hclose
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/fhandler.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 79991bd..4c7fea3 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -311,7 +311,6 @@ class fhandler_base
   /* Returns name used for /proc/<pid>/fd in buf. */
   virtual char *get_proc_fd_name (char *buf);
 
-  virtual void hclose (HANDLE h) {CloseHandle (h);}
   virtual void set_no_inheritance (HANDLE &, bool);
 
   /* fixup fd possibly non-inherited handles after fork */
@@ -623,8 +622,6 @@ class fhandler_socket: public fhandler_base
     return -1;
   }
 
-  void hclose (HANDLE) {close ();}
-
   void set_addr_family (int af) {addr_family = af;}
   int get_addr_family () {return addr_family;}
   void set_socket_type (int st) { type = st;}



More information about the Cygwin-cvs mailing list