Skip to content

Commit 99ff79a

Browse files
committed
chore: remove unused var and logic
1 parent 9b4b5f2 commit 99ff79a

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

include/MaaUtils/Logger.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ class MAA_UTILS_API Logger
1010
public:
1111
static constexpr std::string_view kLogFilename = "maa.log";
1212
static constexpr std::string_view kLogbakFilename = "maa.bak.log";
13-
static constexpr std::string_view kDumpsDirname = "dumps";
14-
static constexpr std::string_view kDumpsbakDirname = "dumps.bak";
1513

1614
public:
1715
static Logger& get_instance();

source/Logger/Logger.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ bool Logger::rotate()
136136
const std::filesystem::path bak_path = log_dir_ / kLogbakFilename;
137137
std::filesystem::copy(log_path_, bak_path, std::filesystem::copy_options::overwrite_existing, ec);
138138

139-
const std::filesystem::path dumps_bak_path = log_dir_ / kDumpsbakDirname;
140-
if (std::filesystem::exists(dumps_bak_path)) {
141-
std::filesystem::remove_all(dumps_bak_path, ec);
142-
}
143139
return true;
144140
}
145141

0 commit comments

Comments
 (0)