archive/File: remove unused attribute "plugin"

This commit is contained in:
Max Kellermann 2017-12-22 15:50:56 +01:00
parent 300a619991
commit 20555c8e37
4 changed files with 3 additions and 10 deletions

View File

@ -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.

View File

@ -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();

View File

@ -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);

View File

@ -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);