[gjs: 5/6] profiler: Remove unused function in !ENABLE_PROFILER case



commit 35fecdea461c0affaed7fa928b0d25415bb7d1d8
Author: Philip Chimento <philip chimento gmail com>
Date:   Wed Jan 31 20:56:23 2018 -0800

    profiler: Remove unused function in !ENABLE_PROFILER case

 gjs/profiler.cpp | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gjs/profiler.cpp b/gjs/profiler.cpp
index ac0be8ab..5f03dca6 100644
--- a/gjs/profiler.cpp
+++ b/gjs/profiler.cpp
@@ -510,6 +510,8 @@ gjs_profiler_stop(GjsProfiler *self)
     self->running = false;
 }
 
+#ifdef ENABLE_PROFILER
+
 static gboolean
 gjs_profiler_sigusr2(void *data)
 {
@@ -526,6 +528,8 @@ gjs_profiler_sigusr2(void *data)
     return G_SOURCE_CONTINUE;
 }
 
+#endif  /* ENABLE_PROFILER */
+
 /*
  * _gjs_profiler_setup_signals:
  * @context: a #GjsContext with a profiler attached


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