diff options
Diffstat (limited to 'lldb/tools/lldb-rpc-gen/RPCCommon.cpp')
-rw-r--r-- | lldb/tools/lldb-rpc-gen/RPCCommon.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lldb/tools/lldb-rpc-gen/RPCCommon.cpp b/lldb/tools/lldb-rpc-gen/RPCCommon.cpp index 6f0abe4..7af6ee3 100644 --- a/lldb/tools/lldb-rpc-gen/RPCCommon.cpp +++ b/lldb/tools/lldb-rpc-gen/RPCCommon.cpp @@ -308,20 +308,6 @@ bool lldb_rpc_gen::MethodIsDisallowed(ASTContext &Context, return isDisallowed; } -bool lldb_rpc_gen::HasCallbackParameter(CXXMethodDecl *MDecl) { - bool HasCallbackParameter = false; - bool HasBatonParameter = false; - auto End = MDecl->parameters().end(); - for (auto Iter = MDecl->parameters().begin(); Iter != End; Iter++) { - if ((*Iter)->getType()->isFunctionPointerType()) - HasCallbackParameter = true; - else if ((*Iter)->getType()->isVoidPointerType()) - HasBatonParameter = true; - } - - return HasCallbackParameter && HasBatonParameter; -} - // NOTE: There's possibly a more clever way to do this, but we're keeping // the string replacement way here. Here is why it is written this way: // By the time we have already created a `Method` object, we have extracted the |