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 committed Mar 6, 2024
1 parent c1bda3e commit 09d8881
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 09d8881

Please sign in to comment.