Remove last cleanup from linux-namespaces.c
[deliverable/binutils-gdb.git] / gdb / common / filestuff.c
index 0d2fa8d6336fecd3d85cd333faa2e75e51984e6f..1ca62482a7e27a5c9da4a63bba463c0a59d2ba3d 100644 (file)
@@ -426,27 +426,6 @@ gdb_pipe_cloexec (int filedes[2])
   return result;
 }
 
-/* Helper function which does the work for make_cleanup_close.  */
-
-static void
-do_close_cleanup (void *arg)
-{
-  int *fd = (int *) arg;
-
-  close (*fd);
-}
-
-/* See filestuff.h.  */
-
-struct cleanup *
-make_cleanup_close (int fd)
-{
-  int *saved_fd = XNEW (int);
-
-  *saved_fd = fd;
-  return make_cleanup_dtor (do_close_cleanup, saved_fd, xfree);
-}
-
 /* See common/filestuff.h.  */
 
 bool
This page took 0.030091 seconds and 4 git commands to generate.