diff options
Diffstat (limited to 'lldb/tools/lldb-rpc-gen')
-rw-r--r-- | lldb/tools/lldb-rpc-gen/RPCCommon.cpp | 14 | ||||
-rw-r--r-- | lldb/tools/lldb-rpc-gen/RPCCommon.h | 1 |
2 files changed, 0 insertions, 15 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 diff --git a/lldb/tools/lldb-rpc-gen/RPCCommon.h b/lldb/tools/lldb-rpc-gen/RPCCommon.h index edc03b4..2a309d0 100644 --- a/lldb/tools/lldb-rpc-gen/RPCCommon.h +++ b/lldb/tools/lldb-rpc-gen/RPCCommon.h @@ -32,7 +32,6 @@ bool TypeIsDisallowedClass(QualType T); bool TypeIsCallbackFunctionPointer(QualType T); bool MethodIsDisallowed(ASTContext &Context, CXXMethodDecl *MDecl); -bool HasCallbackParameter(CXXMethodDecl *MDecl); std::string ReplaceLLDBNamespaceWithRPCNamespace(std::string Name); std::string StripLLDBNamespace(std::string Name); |