Skip to content

Commit

Permalink
Remove deprecated libdnf5::Base::load_config_from_file
Browse files Browse the repository at this point in the history
  • Loading branch information
kontura authored and jan-kolarik committed Apr 10, 2024
1 parent 5bc4044 commit bfb6f32
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions include/libdnf5/base/base.hpp
Expand Up @@ -84,10 +84,6 @@ class Base {
/// Call a function that loads the config file, catching errors appropriately
void with_config_file_path(std::function<void(const std::string &)> 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();
Expand Down
5 changes: 0 additions & 5 deletions libdnf5/base/base.cpp
Expand Up @@ -31,7 +31,6 @@ along with libdnf. If not, see <https://www.gnu.org/licenses/>.
#include "libdnf5/conf/const.hpp"
#include "libdnf5/utils/bgettext/bgettext-mark-domain.h"

#include <algorithm>
#include <atomic>
#include <cstdlib>
#include <filesystem>
Expand Down Expand Up @@ -133,10 +132,6 @@ void Base::with_config_file_path(std::function<void(const std::string &)> 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 &&
Expand Down

0 comments on commit bfb6f32

Please sign in to comment.