Skip to content

Commit

Permalink
GetMethodPrototype is not used by cppyy. Mark it unused.
Browse files Browse the repository at this point in the history
That would help us remove the crafty implementation of GetFunctionPrototype in
InterOp.
  • Loading branch information
vgvassilev committed Apr 18, 2023
1 parent db3cee3 commit 6b06e87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clingwrapper/src/clingwrapper.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,8 @@ std::string Cppyy::GetMethodSignature(TCppMethod_t method, bool show_formal_args

std::string Cppyy::GetMethodPrototype(TCppMethod_t method, bool show_formal_args)
{
return InterOp::GetFunctionPrototype(method, show_formal_args);
assert(0 && "Unused");
return ""; // return InterOp::GetFunctionPrototype(method, show_formal_args);
}

bool Cppyy::IsConstMethod(TCppMethod_t method)
Expand Down
1 change: 1 addition & 0 deletions clingwrapper/src/cpp_cppyy.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ namespace Cppyy {
std::string GetMethodArgDefault(TCppMethod_t, TCppIndex_t iarg);
RPY_EXPORTED
std::string GetMethodSignature(TCppMethod_t, bool show_formal_args, TCppIndex_t max_args = (TCppIndex_t)-1);
// GetMethodPrototype is unused.
RPY_EXPORTED
std::string GetMethodPrototype(TCppMethod_t, bool show_formal_args);
RPY_EXPORTED
Expand Down

0 comments on commit 6b06e87

Please sign in to comment.