Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
20555c8e
Commit
20555c8e
authored
Dec 22, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
archive/File: remove unused attribute "plugin"
parent
300a6199
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
10 deletions
+3
-10
ArchiveFile.hxx
src/archive/ArchiveFile.hxx
+0
-6
Bzip2ArchivePlugin.cxx
src/archive/plugins/Bzip2ArchivePlugin.cxx
+1
-2
Iso9660ArchivePlugin.cxx
src/archive/plugins/Iso9660ArchivePlugin.cxx
+1
-1
ZzipArchivePlugin.cxx
src/archive/plugins/ZzipArchivePlugin.cxx
+1
-1
No files found.
src/archive/ArchiveFile.hxx
View file @
20555c8e
...
@@ -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.
...
...
src/archive/plugins/Bzip2ArchivePlugin.cxx
View file @
20555c8e
...
@@ -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
();
...
...
src/archive/plugins/Iso9660ArchivePlugin.cxx
View file @
20555c8e
...
@@ -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
);
...
...
src/archive/plugins/ZzipArchivePlugin.cxx
View file @
20555c8e
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment