Skip to content
Snippets Groups Projects
Verified Commit 48671207 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Remove unused function

parent 6d2d73a5
No related branches found
No related tags found
No related merge requests found
...@@ -73,8 +73,6 @@ public: ...@@ -73,8 +73,6 @@ public:
inline int getFirstDerivSymbID(int symb_id) const noexcept(false); inline int getFirstDerivSymbID(int symb_id) const noexcept(false);
//! Get the symbol_id of the second derivative function //! Get the symbol_id of the second derivative function
inline int getSecondDerivSymbID(int symb_id) const noexcept(false); inline int getSecondDerivSymbID(int symb_id) const noexcept(false);
//! Returns the total number of unique external functions declared or used in the .mod file
inline int get_total_number_of_unique_model_block_external_functions() const;
}; };
inline bool inline bool
...@@ -110,11 +108,4 @@ ExternalFunctionsTable::getSecondDerivSymbID(int symb_id) const noexcept(false) ...@@ -110,11 +108,4 @@ ExternalFunctionsTable::getSecondDerivSymbID(int symb_id) const noexcept(false)
throw UnknownExternalFunctionSymbolIDException(symb_id); throw UnknownExternalFunctionSymbolIDException(symb_id);
} }
inline int
ExternalFunctionsTable::get_total_number_of_unique_model_block_external_functions() const
{
return count_if(externalFunctionTable.begin(), externalFunctionTable.end(),
[](const auto &kv) { return kv.second.nargs > 0; });
}
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment