From 1f91e2afdc8eaaf8cc5d1acf494646fb5e2c720f Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sat, 4 Apr 2026 17:30:03 -0400 Subject: [PATCH] refactor: retire GCObject.shallow_size() Not needed. Rely on size stored in gc-owned object header --- include/xo/reader2/env/IGCObject_DGlobalEnv.hpp | 2 -- include/xo/reader2/parser/IGCObject_DSchematikaParser.hpp | 2 -- src/reader2/facet/IGCObject_DGlobalEnv.cpp | 6 ------ src/reader2/facet/IGCObject_DSchematikaParser.cpp | 6 ------ 4 files changed, 16 deletions(-) diff --git a/include/xo/reader2/env/IGCObject_DGlobalEnv.hpp b/include/xo/reader2/env/IGCObject_DGlobalEnv.hpp index e7b65c34..88bc11b1 100644 --- a/include/xo/reader2/env/IGCObject_DGlobalEnv.hpp +++ b/include/xo/reader2/env/IGCObject_DGlobalEnv.hpp @@ -50,8 +50,6 @@ namespace xo { /** @defgroup scm-gcobject-dglobalenv-methods **/ ///@{ // const methods - /** memory consumption for this instance **/ - static size_type shallow_size(const DGlobalEnv & self) noexcept; // non-const methods /** move instance using allocator **/ diff --git a/include/xo/reader2/parser/IGCObject_DSchematikaParser.hpp b/include/xo/reader2/parser/IGCObject_DSchematikaParser.hpp index 3e382bb0..39f61b9b 100644 --- a/include/xo/reader2/parser/IGCObject_DSchematikaParser.hpp +++ b/include/xo/reader2/parser/IGCObject_DSchematikaParser.hpp @@ -50,8 +50,6 @@ namespace xo { /** @defgroup scm-gcobject-dschematikaparser-methods **/ ///@{ // const methods - /** memory consumption for this instance **/ - static size_type shallow_size(const DSchematikaParser & self) noexcept; // non-const methods /** move instance using allocator **/ diff --git a/src/reader2/facet/IGCObject_DGlobalEnv.cpp b/src/reader2/facet/IGCObject_DGlobalEnv.cpp index 19af8f25..5c61e9ea 100644 --- a/src/reader2/facet/IGCObject_DGlobalEnv.cpp +++ b/src/reader2/facet/IGCObject_DGlobalEnv.cpp @@ -15,12 +15,6 @@ namespace xo { namespace scm { - auto - IGCObject_DGlobalEnv::shallow_size(const DGlobalEnv & self) noexcept -> size_type - { - return self.shallow_size(); - } - auto IGCObject_DGlobalEnv::shallow_move(DGlobalEnv & self, obj gc) noexcept -> Opaque { diff --git a/src/reader2/facet/IGCObject_DSchematikaParser.cpp b/src/reader2/facet/IGCObject_DSchematikaParser.cpp index 16ce2b5e..133b3f9c 100644 --- a/src/reader2/facet/IGCObject_DSchematikaParser.cpp +++ b/src/reader2/facet/IGCObject_DSchematikaParser.cpp @@ -15,12 +15,6 @@ namespace xo { namespace scm { - auto - IGCObject_DSchematikaParser::shallow_size(const DSchematikaParser & self) noexcept -> size_type - { - return self.shallow_size(); - } - auto IGCObject_DSchematikaParser::shallow_move(DSchematikaParser & self, obj gc) noexcept -> Opaque {