refactor: retire GCObject.shallow_copy()

Collector gets this info from gc-owned object header
This commit is contained in:
Roland Conybeare 2026-04-04 18:01:25 -04:00
commit 327807331d
2 changed files with 3 additions and 11 deletions

View file

@ -81,12 +81,6 @@ namespace xo {
return result;
}
size_t
DUniqueString::shallow_size() const noexcept
{
return sizeof(DUniqueString);
}
DUniqueString *
DUniqueString::shallow_move(obj<ACollector> gc) noexcept
{
@ -114,10 +108,10 @@ namespace xo {
return copy;
}
size_t
void
DUniqueString::forward_children(obj<ACollector>) noexcept
{
return shallow_size();
// no-op
}
} /*namespace scm*/
} /*namespace xo*/