refactor: retire GCObject.shallow_copy()
Collector gets this info from gc-owned object header
This commit is contained in:
parent
423bd045d2
commit
327807331d
2 changed files with 3 additions and 11 deletions
|
|
@ -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*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue