[sysprof] libsysprof: remove dead code



commit 22e121b564da4aca7897dd76ab965ffa29022897
Author: Christian Hergert <chergert redhat com>
Date:   Fri May 10 14:26:46 2019 -0700

    libsysprof: remove dead code

 src/libsysprof/sysprof-helpers.c | 38 --------------------------------------
 1 file changed, 38 deletions(-)
---
diff --git a/src/libsysprof/sysprof-helpers.c b/src/libsysprof/sysprof-helpers.c
index 740806f..72d5d51 100644
--- a/src/libsysprof/sysprof-helpers.c
+++ b/src/libsysprof/sysprof-helpers.c
@@ -444,44 +444,6 @@ sysprof_helpers_perf_event_open (SysprofHelpers          *self,
 
   return *out_fd != -1;
 }
-
-gboolean
-sysprof_helpers_perf_event_open_finish (SysprofHelpers  *self,
-                                        GAsyncResult    *result,
-                                        gint            *out_fd,
-                                        GError         **error)
-{
-  g_autoptr(GUnixFDList) fd_list = NULL;
-
-  g_return_val_if_fail (SYSPROF_IS_HELPERS (self), FALSE);
-  g_return_val_if_fail (G_IS_TASK (result), FALSE);
-
-  if ((fd_list = g_task_propagate_pointer (G_TASK (result), error)))
-    {
-      if (g_unix_fd_list_get_length (fd_list) != 1)
-        {
-          g_set_error (error,
-                       G_IO_ERROR,
-                       G_IO_ERROR_FAILED,
-                       "Incorrect number of FDs from peer");
-          return FALSE;
-        }
-
-      if (out_fd != NULL)
-        {
-          gint fd = g_unix_fd_list_get (fd_list, 0, error);
-
-          if (fd == -1)
-            return FALSE;
-
-          *out_fd = fd;
-        }
-
-      return TRUE;
-    }
-
-  return FALSE;
-}
 #endif /* __linux__ */
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]