[gjs: 8/9] mem: Remove unused counters
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 8/9] mem: Remove unused counters
- Date: Sat, 12 May 2018 17:40:25 +0000 (UTC)
commit 28d8b5d226e53788ce097f04a6e60fde782e8c10
Author: Philip Chimento <philip chimento gmail com>
Date: Thu May 10 00:19:36 2018 -0700
mem: Remove unused counters
The database, resultset, and weakhash counters weren't used anywhere.
Re-alphabetize the counters.
gjs/mem.cpp | 14 ++++----------
gjs/mem.h | 7 ++-----
2 files changed, 6 insertions(+), 15 deletions(-)
---
diff --git a/gjs/mem.cpp b/gjs/mem.cpp
index 1ed251b9..3fff516d 100644
--- a/gjs/mem.cpp
+++ b/gjs/mem.cpp
@@ -35,38 +35,32 @@
GJS_DEFINE_COUNTER(everything)
GJS_DEFINE_COUNTER(boxed)
-GJS_DEFINE_COUNTER(gerror)
GJS_DEFINE_COUNTER(closure)
-GJS_DEFINE_COUNTER(database)
GJS_DEFINE_COUNTER(function)
GJS_DEFINE_COUNTER(fundamental)
+GJS_DEFINE_COUNTER(gerror)
GJS_DEFINE_COUNTER(importer)
+GJS_DEFINE_COUNTER(interface)
GJS_DEFINE_COUNTER(ns)
GJS_DEFINE_COUNTER(object)
GJS_DEFINE_COUNTER(param)
GJS_DEFINE_COUNTER(repo)
-GJS_DEFINE_COUNTER(resultset)
-GJS_DEFINE_COUNTER(weakhash)
-GJS_DEFINE_COUNTER(interface)
#define GJS_LIST_COUNTER(name) \
& gjs_counter_ ## name
static GjsMemCounter* counters[] = {
GJS_LIST_COUNTER(boxed),
- GJS_LIST_COUNTER(gerror),
GJS_LIST_COUNTER(closure),
- GJS_LIST_COUNTER(database),
GJS_LIST_COUNTER(function),
GJS_LIST_COUNTER(fundamental),
+ GJS_LIST_COUNTER(gerror),
GJS_LIST_COUNTER(importer),
+ GJS_LIST_COUNTER(interface),
GJS_LIST_COUNTER(ns),
GJS_LIST_COUNTER(object),
GJS_LIST_COUNTER(param),
GJS_LIST_COUNTER(repo),
- GJS_LIST_COUNTER(resultset),
- GJS_LIST_COUNTER(weakhash),
- GJS_LIST_COUNTER(interface)
};
void
diff --git a/gjs/mem.h b/gjs/mem.h
index f99226a8..f3683a31 100644
--- a/gjs/mem.h
+++ b/gjs/mem.h
@@ -41,19 +41,16 @@ typedef struct {
GJS_DECLARE_COUNTER(everything)
GJS_DECLARE_COUNTER(boxed)
-GJS_DECLARE_COUNTER(gerror)
GJS_DECLARE_COUNTER(closure)
-GJS_DECLARE_COUNTER(database)
GJS_DECLARE_COUNTER(function)
GJS_DECLARE_COUNTER(fundamental)
+GJS_DECLARE_COUNTER(gerror)
GJS_DECLARE_COUNTER(importer)
+GJS_DECLARE_COUNTER(interface)
GJS_DECLARE_COUNTER(ns)
GJS_DECLARE_COUNTER(object)
GJS_DECLARE_COUNTER(param)
GJS_DECLARE_COUNTER(repo)
-GJS_DECLARE_COUNTER(resultset)
-GJS_DECLARE_COUNTER(weakhash)
-GJS_DECLARE_COUNTER(interface)
#define GJS_INC_COUNTER(name) \
do { \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]