Skip to content

Commit 5955f3e

Browse files
committed
[lldb][Widows] Remove unused WriteTryLock function
Unused since d792094. [2571/6469] Building CXX object tools/lldb/sourc...iles/lldbHost.dir/windows/ProcessRunLock.cpp.obj C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/llvm-project/lldb/source/Host/windows/ProcessRunLock.cpp(31,13): warning: unused function 'WriteTryLock' [-Wunused-function] 31 | static bool WriteTryLock(lldb::rwlock_t rwlock) { | ^~~~~~~~~~~~ 1 warning generated.
1 parent f43aaf9 commit 5955f3e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lldb/source/Host/windows/ProcessRunLock.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ static bool WriteLock(lldb::rwlock_t rwlock) {
2828
return true;
2929
}
3030

31-
static bool WriteTryLock(lldb::rwlock_t rwlock) {
32-
return !!::TryAcquireSRWLockExclusive(GetLock(rwlock));
33-
}
34-
3531
static bool WriteUnlock(lldb::rwlock_t rwlock) {
3632
::ReleaseSRWLockExclusive(GetLock(rwlock));
3733
return true;

0 commit comments

Comments
 (0)