From 09d8881e1aa7f19f1301f644041e0881d80878a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= Date: Mon, 4 Mar 2024 13:31:42 +0100 Subject: [PATCH] Remove deprecated `libdnf5::Base::load_config_from_file` --- include/libdnf5/base/base.hpp | 4 ---- libdnf5/base/base.cpp | 5 ----- 2 files changed, 9 deletions(-) diff --git a/include/libdnf5/base/base.hpp b/include/libdnf5/base/base.hpp index 7c72ee2ee..6f6789a0d 100644 --- a/include/libdnf5/base/base.hpp +++ b/include/libdnf5/base/base.hpp @@ -84,10 +84,6 @@ class Base { /// Call a function that loads the config file, catching errors appropriately void with_config_file_path(std::function func); - /// @deprecated It is redundant. It calls `load_config()`. - /// Loads main configuration. - void load_config_from_file(); - /// @return a reference to configuration ConfigMain & get_config(); LogRouterWeakPtr get_logger(); diff --git a/libdnf5/base/base.cpp b/libdnf5/base/base.cpp index e7823018e..d952f5a50 100644 --- a/libdnf5/base/base.cpp +++ b/libdnf5/base/base.cpp @@ -31,7 +31,6 @@ along with libdnf. If not, see . #include "libdnf5/conf/const.hpp" #include "libdnf5/utils/bgettext/bgettext-mark-domain.h" -#include #include #include #include @@ -133,10 +132,6 @@ void Base::with_config_file_path(std::function func) } } -void Base::load_config_from_file() { - load_config(); -} - void Base::load_plugins() { const char * plugins_config_dir = std::getenv("LIBDNF_PLUGINS_CONFIG_DIR"); if (plugins_config_dir &&