From d8271c656872ee98c1a3d888054315b94459c798 Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Mon, 31 Mar 2025 13:23:07 +0200 Subject: [PATCH] Host::GetSeverity(): remove explicit unlocking No change in functionality. The ObjectLock destructor will implicitly release the locks when returning from the function. --- lib/icinga/host.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/icinga/host.cpp b/lib/icinga/host.cpp index 0dbe361a9..b85f8ccc9 100644 --- a/lib/icinga/host.cpp +++ b/lib/icinga/host.cpp @@ -196,8 +196,6 @@ int Host::GetSeverity() const severity += 2048; } - olock.Unlock(); - return severity; }