Remove a line that cannot do anything.
If get_dir returns a non-empty string, the directory (now) exists. Calling create_directory_if_missing on the result therefore does nothing.
This commit is contained in:
parent
59ea3066a8
commit
5ba9d8b495
1 changed files with 0 additions and 1 deletions
|
@ -36,7 +36,6 @@ static std::string get_persist_cfg_name(const std::string &name_space) {
|
|||
|
||||
void persist_file_context::load() {
|
||||
std::string cfg_dir = get_dir(get_user_data_dir() + "/persist");
|
||||
create_directory_if_missing(cfg_dir);
|
||||
|
||||
std::string cfg_name = get_persist_cfg_name(namespace_.root_);
|
||||
if (file_exists(cfg_name) && !is_directory(cfg_name)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue