From 25ff744a859de3e4c5dfdeb83c2c4e9079fc4506 Mon Sep 17 00:00:00 2001 From: Goran Jelic-Cizmek Date: Mon, 28 Oct 2024 14:56:59 +0100 Subject: [PATCH] Remove `method_name` It already exists in `CodegenCppVisitor` --- src/codegen/codegen_neuron_cpp_visitor.cpp | 5 ----- src/codegen/codegen_neuron_cpp_visitor.hpp | 2 -- 2 files changed, 7 deletions(-) diff --git a/src/codegen/codegen_neuron_cpp_visitor.cpp b/src/codegen/codegen_neuron_cpp_visitor.cpp index d772a5700..a22a82a66 100644 --- a/src/codegen/codegen_neuron_cpp_visitor.cpp +++ b/src/codegen/codegen_neuron_cpp_visitor.cpp @@ -2646,11 +2646,6 @@ CodegenCppVisitor::ParamVector CodegenNeuronCppVisitor::cvode_update_parameters( } -std::string CodegenNeuronCppVisitor::method_name(const std::string& name) { - return fmt::format("{}_{}", name, info.mod_suffix); -} - - /* print the function returning the # of ODEs to solve */ void CodegenNeuronCppVisitor::print_cvode_count() { printer->fmt_push_block("static constexpr int {}(int _type)", diff --git a/src/codegen/codegen_neuron_cpp_visitor.hpp b/src/codegen/codegen_neuron_cpp_visitor.hpp index 5619cf971..a4984b4ff 100644 --- a/src/codegen/codegen_neuron_cpp_visitor.hpp +++ b/src/codegen/codegen_neuron_cpp_visitor.hpp @@ -792,8 +792,6 @@ class CodegenNeuronCppVisitor: public CodegenCppVisitor { void print_cvode_setup(const std::string& setup_name, const std::string& update_name); - std::string method_name(const std::string& name); - /****************************************************************************************/ /* Overloaded visitor routines */