Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove print_backend_namespace_{start,stop}. #1378

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/codegen/codegen_coreneuron_cpp_visitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,16 +302,6 @@ void CodegenCoreneuronCppVisitor::print_global_method_annotation() {
}


void CodegenCoreneuronCppVisitor::print_backend_namespace_start() {
// no separate namespace for C++ (cpu) backend
}


void CodegenCoreneuronCppVisitor::print_backend_namespace_stop() {
// no separate namespace for C++ (cpu) backend
}


void CodegenCoreneuronCppVisitor::print_backend_includes() {
// backend specific, nothing for cpu
}
Expand Down Expand Up @@ -2993,12 +2983,10 @@ void CodegenCoreneuronCppVisitor::print_headers_include() {

void CodegenCoreneuronCppVisitor::print_namespace_begin() {
print_namespace_start();
print_backend_namespace_start();
}


void CodegenCoreneuronCppVisitor::print_namespace_end() {
print_backend_namespace_stop();
print_namespace_stop();
}

Expand Down
16 changes: 0 additions & 16 deletions src/codegen/codegen_coreneuron_cpp_visitor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,22 +258,6 @@ class CodegenCoreneuronCppVisitor: public CodegenCppVisitor {
virtual void print_global_method_annotation();


/**
* Prints the start of namespace for the backend-specific code
*
* For the C++ backend no additional namespace is required
*/
virtual void print_backend_namespace_start();


/**
* Prints the end of namespace for the backend-specific code
*
* For the C++ backend no additional namespace is required
*/
virtual void print_backend_namespace_stop();


/**
* Print backend specific includes (none needed for C++ backend)
*/
Expand Down
Loading