From d2e041543b8de9c11586479e2acce3a20b51c404 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Mon, 14 Nov 2022 15:25:55 +0200 Subject: [PATCH] remove redundant handle check in QLibrary::unload() QLibraryPrivate::unload() does the same check Signed-off-by: Ivailo Monev --- src/core/plugin/qlibrary.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/plugin/qlibrary.cpp b/src/core/plugin/qlibrary.cpp index e94dad2af..0191590a6 100644 --- a/src/core/plugin/qlibrary.cpp +++ b/src/core/plugin/qlibrary.cpp @@ -391,9 +391,6 @@ bool QLibrary::load() */ bool QLibrary::unload() { - if (!d_ptr->pHnd) { - return false; - } return d_ptr->unload(); }