From b1155655d5f396af0a4f151bf6298004aac98efb Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sun, 12 Apr 2026 15:05:39 -0400 Subject: [PATCH] xo-gc: tidy: SetupGc.*pp -> setup_gc.*pp --- include/xo/gc/SetupGc.hpp | 20 ------------------- src/gc/CMakeLists.txt | 2 +- src/gc/SetupGc.cpp | 42 --------------------------------------- src/gc/init_gc.cpp | 2 +- 4 files changed, 2 insertions(+), 64 deletions(-) delete mode 100644 include/xo/gc/SetupGc.hpp delete mode 100644 src/gc/SetupGc.cpp diff --git a/include/xo/gc/SetupGc.hpp b/include/xo/gc/SetupGc.hpp deleted file mode 100644 index bf5c5c6..0000000 --- a/include/xo/gc/SetupGc.hpp +++ /dev/null @@ -1,20 +0,0 @@ -/** @file SetupGc.hpp - * - * @author Roland Conybeare, Mar 2026 - **/ - -#pragma once - -namespace xo { - namespace mm { - - class SetupGc { - public: - /** Register gc (facet,impl) combinations with FacetRegistry **/ - static bool register_facets(); - }; - - } /*namespace mm*/ -} /*namespace xo*/ - -/* end SetupGc.hpp */ diff --git a/src/gc/CMakeLists.txt b/src/gc/CMakeLists.txt index 0dcfa2e..5fa098f 100644 --- a/src/gc/CMakeLists.txt +++ b/src/gc/CMakeLists.txt @@ -4,7 +4,7 @@ set(SELF_LIB xo_gc) set(SELF_SRCS init_gc.cpp - SetupGc.cpp + setup_gc.cpp IAllocator_DX1Collector.cpp IAllocIterator_DX1CollectorIterator.cpp diff --git a/src/gc/SetupGc.cpp b/src/gc/SetupGc.cpp deleted file mode 100644 index dc5fad0..0000000 --- a/src/gc/SetupGc.cpp +++ /dev/null @@ -1,42 +0,0 @@ -/** @file SetupGc.cpp - * - * @author Roland Conybeare, Mar 2026 - **/ - -#include "SetupGc.hpp" -#include "X1Collector.hpp" -#include "GCObjectStoreVisitor.hpp" -#include -#include - -namespace xo { - using xo::mm::AAllocator; - using xo::mm::ACollector; - using xo::mm::DX1Collector; - using xo::facet::FacetRegistry; - using xo::reflect::typeseq; - - namespace mm { - - bool - SetupGc::register_facets() - { - scope log(XO_DEBUG(true)); - - FacetRegistry::register_impl(); - FacetRegistry::register_impl(); - - FacetRegistry::register_impl(); - - log && log(xtag("DX1Collector.tseq", typeseq::id())); - log && log(xtag("DGCObjectStoreVisitor.tseq", typeseq::id())); - - log && log(xtag("ACollector.tseq", typeseq::id())); - log && log(xtag("AGCObjectVisitor.tseq", typeseq::id())); - - return true; - } - } -} /*namespace xo*/ - -/* end SetupGc.cpp */ diff --git a/src/gc/init_gc.cpp b/src/gc/init_gc.cpp index 40dd700..6600239 100644 --- a/src/gc/init_gc.cpp +++ b/src/gc/init_gc.cpp @@ -4,7 +4,7 @@ **/ #include "init_gc.hpp" -#include "SetupGc.hpp" +#include "setup_gc.hpp" #include #include