mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
Swift: delete TargetFile's move assignment
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user