Skip to content

Commit

Permalink
drop unused var to please -Werror
Browse files Browse the repository at this point in the history
  • Loading branch information
landryb committed Nov 22, 2024
1 parent 25cc162 commit e63c6f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libgnucash/core-utils/gnc-filepath-utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,9 @@ copy_recursive(const bfs::path& src, const bfs::path& dest)
if (src.compare(dest) == 0)
return false;

auto old_str = src.string();
auto old_len = old_str.size();
try
{
std::filesystem::copy (std::filesystem::path(old_str),
std::filesystem::copy (std::filesystem::path(src.string()),
std::filesystem::path(dest.string()),
std::filesystem::copy_options::recursive);
}
Expand Down

0 comments on commit e63c6f8

Please sign in to comment.