From 9af6bc2b8cc6a90d48ace53f07da403b9b6faf8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= Date: Thu, 12 Oct 2023 14:13:26 +0200 Subject: [PATCH] Remove duplicate `set_protect_running_kernel()` method --- libdnf5/rpm/solv/goal_private.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libdnf5/rpm/solv/goal_private.hpp b/libdnf5/rpm/solv/goal_private.hpp index e01802993..410dd87f5 100644 --- a/libdnf5/rpm/solv/goal_private.hpp +++ b/libdnf5/rpm/solv/goal_private.hpp @@ -127,8 +127,6 @@ class GoalPrivate { /// PackageId.id == 0 => not set /// PackageId.id == -1 => cannot be detected PackageId get_protect_running_kernel() { return protected_running_kernel; }; - /// Set running kernel that mus be not removed - void set_protect_running_kernel(PackageId value) { protected_running_kernel = value; }; // Get protected_packages. Running kernel is not included const libdnf5::solv::SolvMap * get_protected_packages() { return protected_packages.get(); }; @@ -138,6 +136,7 @@ class GoalPrivate { void set_protected_packages(const libdnf5::solv::SolvMap & map); /// Reset all protected packages void reset_protected_packages(); + /// Set running kernel that mus be not removed void set_protected_running_kernel(PackageId kernel) { protected_running_kernel = kernel; }; /// Set Ids of user-installed packages void set_user_installed_packages(const libdnf5::solv::IdQueue & queue);