Skip to content

Commit

Permalink
Remove print_backend_namespace_{start,stop}. (#1378)
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc authored Jul 31, 2024
1 parent 575a724 commit 62268bb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
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

0 comments on commit 62268bb

Please sign in to comment.