Commit 20555c8e authored by Max Kellermann's avatar Max Kellermann

archive/File: remove unused attribute "plugin"

parent 300a6199
...@@ -27,12 +27,6 @@ class ArchiveVisitor; ...@@ -27,12 +27,6 @@ class ArchiveVisitor;
class InputStream; class InputStream;
class ArchiveFile { class ArchiveFile {
public:
const ArchivePlugin &plugin;
ArchiveFile(const ArchivePlugin &_plugin)
:plugin(_plugin) {}
protected: protected:
/** /**
* Use Close() instead of delete. * Use Close() instead of delete.
......
...@@ -46,8 +46,7 @@ public: ...@@ -46,8 +46,7 @@ public:
const InputStreamPtr istream; const InputStreamPtr istream;
Bzip2ArchiveFile(Path path, InputStreamPtr &&_is) Bzip2ArchiveFile(Path path, InputStreamPtr &&_is)
:ArchiveFile(bz2_archive_plugin), :name(path.GetBase().c_str()),
name(path.GetBase().c_str()),
istream(std::move(_is)) { istream(std::move(_is)) {
// remove .bz2 suffix // remove .bz2 suffix
const size_t len = name.length(); const size_t len = name.length();
......
...@@ -45,7 +45,7 @@ class Iso9660ArchiveFile final : public ArchiveFile { ...@@ -45,7 +45,7 @@ class Iso9660ArchiveFile final : public ArchiveFile {
public: public:
Iso9660ArchiveFile(iso9660_t *_iso) Iso9660ArchiveFile(iso9660_t *_iso)
:ArchiveFile(iso9660_archive_plugin), iso(_iso) {} :iso(_iso) {}
~Iso9660ArchiveFile() { ~Iso9660ArchiveFile() {
iso9660_close(iso); iso9660_close(iso);
......
...@@ -40,7 +40,7 @@ public: ...@@ -40,7 +40,7 @@ public:
ZZIP_DIR *const dir; ZZIP_DIR *const dir;
ZzipArchiveFile(ZZIP_DIR *_dir) ZzipArchiveFile(ZZIP_DIR *_dir)
:ArchiveFile(zzip_archive_plugin), dir(_dir) {} :dir(_dir) {}
~ZzipArchiveFile() { ~ZzipArchiveFile() {
zzip_dir_close(dir); zzip_dir_close(dir);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment