Skip to content

Commit 29b9bdf

Browse files
[lldb] Remove HasCallbackParameter (#150366)
1 parent 97c9534 commit 29b9bdf

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

lldb/tools/lldb-rpc-gen/RPCCommon.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -308,20 +308,6 @@ bool lldb_rpc_gen::MethodIsDisallowed(ASTContext &Context,
308308
return isDisallowed;
309309
}
310310

311-
bool lldb_rpc_gen::HasCallbackParameter(CXXMethodDecl *MDecl) {
312-
bool HasCallbackParameter = false;
313-
bool HasBatonParameter = false;
314-
auto End = MDecl->parameters().end();
315-
for (auto Iter = MDecl->parameters().begin(); Iter != End; Iter++) {
316-
if ((*Iter)->getType()->isFunctionPointerType())
317-
HasCallbackParameter = true;
318-
else if ((*Iter)->getType()->isVoidPointerType())
319-
HasBatonParameter = true;
320-
}
321-
322-
return HasCallbackParameter && HasBatonParameter;
323-
}
324-
325311
// NOTE: There's possibly a more clever way to do this, but we're keeping
326312
// the string replacement way here. Here is why it is written this way:
327313
// By the time we have already created a `Method` object, we have extracted the

lldb/tools/lldb-rpc-gen/RPCCommon.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ bool TypeIsDisallowedClass(QualType T);
3232
bool TypeIsCallbackFunctionPointer(QualType T);
3333

3434
bool MethodIsDisallowed(ASTContext &Context, CXXMethodDecl *MDecl);
35-
bool HasCallbackParameter(CXXMethodDecl *MDecl);
3635

3736
std::string ReplaceLLDBNamespaceWithRPCNamespace(std::string Name);
3837
std::string StripLLDBNamespace(std::string Name);

0 commit comments

Comments
 (0)