refactor: retire GCObject.shallow_size()

Not needed.  Rely on size stored in gc-owned object header
This commit is contained in:
Roland Conybeare 2026-04-04 17:30:03 -04:00
commit 210f568f7b
14 changed files with 0 additions and 56 deletions

View file

@ -48,8 +48,6 @@ namespace xo {
/** @defgroup scm-gcobject-darray-methods **/
///@{
// const methods
/** memory consumption for this instance **/
static size_type shallow_size(const DArray & self) noexcept;
// non-const methods
/** move instance using allocator **/

View file

@ -48,8 +48,6 @@ namespace xo {
/** @defgroup scm-gcobject-dboolean-methods **/
///@{
// const methods
/** memory consumption for this instance **/
static size_type shallow_size(const DBoolean & self) noexcept;
// non-const methods
/** move instance using allocator **/

View file

@ -48,8 +48,6 @@ namespace xo {
/** @defgroup scm-gcobject-ddictionary-methods **/
///@{
// const methods
/** memory consumption for this instance **/
static size_type shallow_size(const DDictionary & self) noexcept;
// non-const methods
/** move instance using allocator **/

View file

@ -48,8 +48,6 @@ namespace xo {
/** @defgroup scm-gcobject-druntimeerror-methods **/
///@{
// const methods
/** memory consumption for this instance **/
static size_type shallow_size(const DRuntimeError & self) noexcept;
// non-const methods
/** move instance using allocator **/

View file

@ -48,8 +48,6 @@ namespace xo {
/** @defgroup scm-gcobject-dlist-methods **/
///@{
// const methods
/** memory consumption for this instance **/
static size_type shallow_size(const DList & self) noexcept;
// non-const methods
/** move instance using allocator **/

View file

@ -49,8 +49,6 @@ namespace xo {
/** @defgroup scm-gcobject-dfloat-methods **/
///@{
// const methods
/** memory consumption for this instance **/
static size_type shallow_size(const DFloat & self) noexcept;
// non-const methods
/** move instance using allocator **/

View file

@ -48,8 +48,6 @@ namespace xo {
/** @defgroup scm-gcobject-dinteger-methods **/
///@{
// const methods
/** memory consumption for this instance **/
static size_type shallow_size(const DInteger & self) noexcept;
// non-const methods
/** move instance using allocator **/

View file

@ -15,12 +15,6 @@
namespace xo {
namespace scm {
auto
IGCObject_DArray::shallow_size(const DArray & self) noexcept -> size_type
{
return self.shallow_size();
}
auto
IGCObject_DArray::shallow_move(DArray & self, obj<ACollector> gc) noexcept -> Opaque
{

View file

@ -15,12 +15,6 @@
namespace xo {
namespace scm {
auto
IGCObject_DBoolean::shallow_size(const DBoolean & self) noexcept -> size_type
{
return self.shallow_size();
}
auto
IGCObject_DBoolean::shallow_move(DBoolean & self, obj<ACollector> gc) noexcept -> Opaque
{

View file

@ -15,12 +15,6 @@
namespace xo {
namespace scm {
auto
IGCObject_DDictionary::shallow_size(const DDictionary & self) noexcept -> size_type
{
return self.shallow_size();
}
auto
IGCObject_DDictionary::shallow_move(DDictionary & self, obj<ACollector> gc) noexcept -> Opaque
{

View file

@ -15,12 +15,6 @@
namespace xo {
namespace scm {
auto
IGCObject_DFloat::shallow_size(const DFloat & self) noexcept -> size_type
{
return self.shallow_size();
}
auto
IGCObject_DFloat::shallow_move(DFloat & self, obj<ACollector> gc) noexcept -> Opaque
{

View file

@ -15,12 +15,6 @@
namespace xo {
namespace scm {
auto
IGCObject_DInteger::shallow_size(const DInteger & self) noexcept -> size_type
{
return self.shallow_size();
}
auto
IGCObject_DInteger::shallow_move(DInteger & self, obj<ACollector> gc) noexcept -> Opaque
{

View file

@ -15,12 +15,6 @@
namespace xo {
namespace scm {
auto
IGCObject_DList::shallow_size(const DList & self) noexcept -> size_type
{
return self.shallow_size();
}
auto
IGCObject_DList::shallow_move(DList & self, obj<ACollector> gc) noexcept -> Opaque
{

View file

@ -15,12 +15,6 @@
namespace xo {
namespace scm {
auto
IGCObject_DRuntimeError::shallow_size(const DRuntimeError & self) noexcept -> size_type
{
return self.shallow_size();
}
auto
IGCObject_DRuntimeError::shallow_move(DRuntimeError & self, obj<ACollector> gc) noexcept -> Opaque
{