[gjs: 12/18] gi: Remove unused destructors
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 12/18] gi: Remove unused destructors
- Date: Fri, 4 Dec 2020 01:18:23 +0000 (UTC)
commit 6d641029ec145707ce4685cdf557b8551b49e187
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Nov 28 20:13:50 2020 -0800
gi: Remove unused destructors
There were several destructors for GIWrapper classes that didn't actually
do anything after some refactors. Remove them.
gi/boxed.h | 1 -
gi/fundamental.h | 1 -
gi/gerror.h | 1 -
gi/interface.h | 1 -
gi/union.h | 1 -
gi/wrapperutils.h | 1 -
6 files changed, 6 deletions(-)
---
diff --git a/gi/boxed.h b/gi/boxed.h
index d7da8d14..ccad2b2b 100644
--- a/gi/boxed.h
+++ b/gi/boxed.h
@@ -49,7 +49,6 @@ class BoxedBase
protected:
explicit BoxedBase(BoxedPrototype* proto = nullptr)
: GIWrapperBase(proto) {}
- ~BoxedBase(void) {}
static constexpr GjsDebugTopic DEBUG_TOPIC = GJS_DEBUG_GBOXED;
static constexpr const char* DEBUG_TAG = "GBoxed";
diff --git a/gi/fundamental.h b/gi/fundamental.h
index 4a5273be..c2f4bf65 100644
--- a/gi/fundamental.h
+++ b/gi/fundamental.h
@@ -37,7 +37,6 @@ class FundamentalBase
protected:
explicit FundamentalBase(FundamentalPrototype* proto = nullptr)
: GIWrapperBase(proto) {}
- ~FundamentalBase(void) {}
static constexpr GjsDebugTopic DEBUG_TOPIC = GJS_DEBUG_GFUNDAMENTAL;
static constexpr const char* DEBUG_TAG = "fundamental";
diff --git a/gi/gerror.h b/gi/gerror.h
index 4176241f..e2d63107 100644
--- a/gi/gerror.h
+++ b/gi/gerror.h
@@ -46,7 +46,6 @@ class ErrorBase
protected:
explicit ErrorBase(ErrorPrototype* proto = nullptr)
: GIWrapperBase(proto) {}
- ~ErrorBase(void) {}
static constexpr GjsDebugTopic DEBUG_TOPIC = GJS_DEBUG_GERROR;
static constexpr const char* DEBUG_TAG = "gerror";
diff --git a/gi/interface.h b/gi/interface.h
index 7f1842b4..24448494 100644
--- a/gi/interface.h
+++ b/gi/interface.h
@@ -45,7 +45,6 @@ class InterfaceBase : public GIWrapperBase<InterfaceBase, InterfacePrototype,
protected:
explicit InterfaceBase(InterfacePrototype* proto = nullptr)
: GIWrapperBase(proto) {}
- ~InterfaceBase(void) {}
static constexpr GjsDebugTopic DEBUG_TOPIC = GJS_DEBUG_GINTERFACE;
static constexpr const char* DEBUG_TAG = "GInterface";
diff --git a/gi/union.h b/gi/union.h
index 137a4bb6..cefcff66 100644
--- a/gi/union.h
+++ b/gi/union.h
@@ -31,7 +31,6 @@ class UnionBase
protected:
explicit UnionBase(UnionPrototype* proto = nullptr)
: GIWrapperBase(proto) {}
- ~UnionBase(void) {}
static constexpr GjsDebugTopic DEBUG_TOPIC = GJS_DEBUG_GBOXED;
static constexpr const char* DEBUG_TAG = "union";
diff --git a/gi/wrapperutils.h b/gi/wrapperutils.h
index 7c0dc246..3146b210 100644
--- a/gi/wrapperutils.h
+++ b/gi/wrapperutils.h
@@ -137,7 +137,6 @@ class GIWrapperBase {
Prototype* m_proto;
explicit GIWrapperBase(Prototype* proto = nullptr) : m_proto(proto) {}
- ~GIWrapperBase(void) {}
// These three can be overridden in subclasses. See define_jsclass().
static constexpr JSPropertySpec* proto_properties = nullptr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]