Skip to content

Commit b36e762

Browse files
authored
[llvm][NFC] Remove a couple unused member functions in CrashRecoveryContext (#162246)
They're not used anywhere, and don't really offer anything beyond the functions they wrap.
1 parent 7e3080f commit b36e762

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

llvm/include/llvm/Support/CrashRecoveryContext.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ class CrashRecoveryContext {
8080
/// make as little assumptions as possible about the program state when
8181
/// RunSafely has returned false.
8282
LLVM_ABI bool RunSafely(function_ref<void()> Fn);
83-
bool RunSafely(void (*Fn)(void*), void *UserData) {
84-
return RunSafely([&]() { Fn(UserData); });
85-
}
8683

8784
/// Execute the provide callback function (with the given arguments) in
8885
/// a protected context which is run in another thread (optionally with a
@@ -94,10 +91,6 @@ class CrashRecoveryContext {
9491
/// propagated to the new thread as well.
9592
LLVM_ABI bool RunSafelyOnThread(function_ref<void()>,
9693
unsigned RequestedStackSize = 0);
97-
bool RunSafelyOnThread(void (*Fn)(void*), void *UserData,
98-
unsigned RequestedStackSize = 0) {
99-
return RunSafelyOnThread([&]() { Fn(UserData); }, RequestedStackSize);
100-
}
10194

10295
LLVM_ABI bool RunSafelyOnNewStack(function_ref<void()>,
10396
unsigned RequestedStackSize = 0);

0 commit comments

Comments
 (0)