Swift: delete TargetFile's move assignment

This commit is contained in:
Paolo Tranquilli
2022-07-14 15:39:36 +02:00
parent d748cb483d
commit 3e06455ac1
2 changed files with 2 additions and 11 deletions

View File

@@ -67,16 +67,6 @@ std::optional<TargetFile> TargetFile::create(std::string_view target,
return std::nullopt;
}
TargetFile& TargetFile::operator=(TargetFile&& other) {
if (this != &other) {
commit();
workingPath = std::move(other.workingPath);
targetPath = std::move(other.targetPath);
out = std::move(other.out);
}
return *this;
}
void TargetFile::commit() {
if (out.is_open()) {
out.close();