From 8ae8b39f803974e0cb47d5253e32318a5d470dea Mon Sep 17 00:00:00 2001 From: Sasha Rahlin Date: Thu, 29 Feb 2024 00:42:32 -0600 Subject: [PATCH] cleanup --- core/src/G3PipelineInfo.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/core/src/G3PipelineInfo.cxx b/core/src/G3PipelineInfo.cxx index f0a09ea0..be1c3ca0 100644 --- a/core/src/G3PipelineInfo.cxx +++ b/core/src/G3PipelineInfo.cxx @@ -9,8 +9,6 @@ template void G3ModuleConfig::save(A &ar, unsigned v) const { - namespace bp = boost::python; - ar & cereal::make_nvp("G3FrameObject", cereal::base_class(this)); ar & cereal::make_nvp("modname", modname); @@ -33,8 +31,6 @@ template void G3ModuleConfig::load(A &ar, unsigned v) size_t size; ar >> cereal::make_nvp("size", size); - namespace bp = boost::python; - for (size_t i = 0; i < size; i++) { std::string key; bool is_frameobject; @@ -59,11 +55,11 @@ std::string G3ModuleConfig::Summary() const { std::string rv = "pipe.Add(" + modname; + const std::string prefix = "\"repr("; + const std::string suffix = ")\""; for (auto i : config) { // drop repr wrapper added by python constructor std::string val = i.second->Summary(); - std::string prefix = "\"repr("; - std::string suffix = ")\""; if (val.rfind(prefix, 0) == 0) { val.replace(val.begin(), val.begin() + prefix.size(), ""); val.replace(val.end() - suffix.size(), val.end(), "");