[sysprof] libsysprof-capture: remove unused API



commit 351a2089ff1ebcb4a7cc57fd8faddeee240ebf05
Author: Christian Hergert <chergert redhat com>
Date:   Fri Feb 28 09:27:32 2020 -0800

    libsysprof-capture: remove unused API
    
    We want this alter, but for now, we can skip it until there is a chance
    to fully implement it.

 src/libsysprof-capture/sysprof-collector.c | 68 ------------------------------
 src/libsysprof-capture/sysprof-collector.h | 36 ----------------
 2 files changed, 104 deletions(-)
---
diff --git a/src/libsysprof-capture/sysprof-collector.c b/src/libsysprof-capture/sysprof-collector.c
index 618da8f..5864d76 100644
--- a/src/libsysprof-capture/sysprof-collector.c
+++ b/src/libsysprof-capture/sysprof-collector.c
@@ -320,55 +320,6 @@ sysprof_collector_init (void)
       }                                                           \
   } G_STMT_END
 
-void
-sysprof_collector_embed_file (const gchar  *path,
-                              const guint8 *data,
-                              gsize         data_len)
-{
-}
-
-void
-sysprof_collector_embed_file_fd (const gchar *path,
-                                 int          fd)
-{
-}
-
-void
-sysprof_collector_mark (gint64       time,
-                        guint64      duration,
-                        const gchar *group,
-                        const gchar *name,
-                        const gchar *message)
-{
-}
-
-void
-sysprof_collector_set_metadata (const gchar *id,
-                                const gchar *value,
-                                gssize       value_len)
-{
-}
-
-void
-sysprof_collector_sample (gint64                       time,
-                          const SysprofCaptureAddress *addrs,
-                          guint                        n_addrs)
-{
-}
-
-void
-sysprof_collector_log (GLogLevelFlags          severity,
-                       const gchar            *domain,
-                       const gchar            *message)
-{
-}
-
-SysprofCaptureAddress
-sysprof_collector_map_jitted_ip (const gchar *name)
-{
-  return 0;
-}
-
 void
 sysprof_collector_allocate (SysprofCaptureAddress   alloc_addr,
                             gint64                  alloc_size,
@@ -413,22 +364,3 @@ sysprof_collector_allocate (SysprofCaptureAddress   alloc_addr,
 
   } COLLECTOR_END;
 }
-
-guint
-sysprof_collector_reserve_counters (guint n_counters)
-{
-  return 0;
-}
-
-void
-sysprof_collector_define_counters (const SysprofCaptureCounter *counters,
-                                   guint                        n_counters)
-{
-}
-
-void
-sysprof_collector_publish_counters (const guint                      *counters_ids,
-                                    const SysprofCaptureCounterValue *values,
-                                    guint                             n_counters)
-{
-}
diff --git a/src/libsysprof-capture/sysprof-collector.h b/src/libsysprof-capture/sysprof-collector.h
index bc23fb0..24a88bc 100644
--- a/src/libsysprof-capture/sysprof-collector.h
+++ b/src/libsysprof-capture/sysprof-collector.h
@@ -64,45 +64,9 @@ G_BEGIN_DECLS
 SYSPROF_AVAILABLE_IN_3_36
 void                  sysprof_collector_init             (void);
 SYSPROF_AVAILABLE_IN_3_36
-void                  sysprof_collector_embed_file       (const gchar                      *path,
-                                                          const guint8                     *data,
-                                                          gsize                             data_len);
-SYSPROF_AVAILABLE_IN_3_36
-void                  sysprof_collector_embed_file_fd    (const gchar                      *path,
-                                                          gint                              fd);
-SYSPROF_AVAILABLE_IN_3_36
-void                  sysprof_collector_mark             (gint64                            time,
-                                                          guint64                           duration,
-                                                          const gchar                      *group,
-                                                          const gchar                      *name,
-                                                          const gchar                      *mesage);
-SYSPROF_AVAILABLE_IN_3_36
-void                  sysprof_collector_set_metadata     (const gchar                      *id,
-                                                          const gchar                      *value,
-                                                          gssize                            value_len);
-SYSPROF_AVAILABLE_IN_3_36
-void                  sysprof_collector_sample           (gint64                            time,
-                                                          const SysprofCaptureAddress      *addrs,
-                                                          guint                             n_addrs);
-SYSPROF_AVAILABLE_IN_3_36
-void                  sysprof_collector_log              (GLogLevelFlags                    severity,
-                                                          const gchar                      *domain,
-                                                          const gchar                      *message);
-SYSPROF_AVAILABLE_IN_3_36
-SysprofCaptureAddress sysprof_collector_map_jitted_ip    (const gchar                      *name);
-SYSPROF_AVAILABLE_IN_3_36
 void                  sysprof_collector_allocate         (SysprofCaptureAddress             alloc_addr,
                                                           gint64                            alloc_size,
                                                           SysprofBacktraceFunc              backtrace_func,
                                                           gpointer                          backtrace_data);
-SYSPROF_AVAILABLE_IN_3_36
-guint                 sysprof_collector_reserve_counters (guint                             n_counters);
-SYSPROF_AVAILABLE_IN_3_36
-void                  sysprof_collector_define_counters  (const SysprofCaptureCounter      *counters,
-                                                          guint                             n_counters);
-SYSPROF_AVAILABLE_IN_3_36
-void                  sysprof_collector_publish_counters (const guint                      *counters_ids,
-                                                          const SysprofCaptureCounterValue *values,
-                                                          guint                             n_counters);
 
 G_END_DECLS


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