archive/File: eliminate Close(), make destructor virtual instead

This commit is contained in:
Max Kellermann
2017-12-22 16:30:17 +01:00
parent 5da455080b
commit 9aec2f019a
7 changed files with 4 additions and 23 deletions

View File

@@ -49,10 +49,6 @@ public:
name.erase(len - 4);
}
virtual void Close() override {
delete this;
}
virtual void Visit(ArchiveVisitor &visitor) override {
visitor.VisitArchiveEntry(name.c_str());
}