aboutsummaryrefslogtreecommitdiffstats
path: root/taglib/flac
diff options
context:
space:
mode:
authorTsuda Kageyu <tsuda.kageyu@gmail.com>2015-07-31 23:51:10 +0900
committerTsuda Kageyu <tsuda.kageyu@gmail.com>2015-08-01 00:49:25 +0900
commit0b43b7136dfb6d2a324ab8c517ba23addadf7683 (patch)
tree71a37d9a3ed8fa76175f8c5e280ed2a510532a22 /taglib/flac
parent1e752a1e8fe15d0a51ec903d36886bbea7f89604 (diff)
FLAC: Remove unused formal parameters.
Diffstat (limited to 'taglib/flac')
-rw-r--r--taglib/flac/flacfile.cpp29
-rw-r--r--taglib/flac/flacfile.h2
-rw-r--r--taglib/flac/flacproperties.cpp2
3 files changed, 16 insertions, 17 deletions
diff --git a/taglib/flac/flacfile.cpp b/taglib/flac/flacfile.cpp
index 2483caf2..dbf0d767 100644
--- a/taglib/flac/flacfile.cpp
+++ b/taglib/flac/flacfile.cpp
@@ -101,33 +101,32 @@ public:
// public members
////////////////////////////////////////////////////////////////////////////////
-FLAC::File::File(FileName file, bool readProperties,
- Properties::ReadStyle propertiesStyle) :
- TagLib::File(file)
+FLAC::File::File(FileName file, bool readProperties, Properties::ReadStyle) :
+ TagLib::File(file),
+ d(new FilePrivate())
{
- d = new FilePrivate;
if(isOpen())
- read(readProperties, propertiesStyle);
+ read(readProperties);
}
FLAC::File::File(FileName file, ID3v2::FrameFactory *frameFactory,
- bool readProperties, Properties::ReadStyle propertiesStyle) :
- TagLib::File(file)
+ bool readProperties, Properties::ReadStyle) :
+ TagLib::File(file),
+ d(new FilePrivate())
{
- d = new FilePrivate;
d->ID3v2FrameFactory = frameFactory;
if(isOpen())
- read(readProperties, propertiesStyle);
+ read(readProperties);
}
FLAC::File::File(IOStream *stream, ID3v2::FrameFactory *frameFactory,
- bool readProperties, Properties::ReadStyle propertiesStyle) :
- TagLib::File(stream)
+ bool readProperties, Properties::ReadStyle) :
+ TagLib::File(stream),
+ d(new FilePrivate())
{
- d = new FilePrivate;
d->ID3v2FrameFactory = frameFactory;
if(isOpen())
- read(readProperties, propertiesStyle);
+ read(readProperties);
}
FLAC::File::~File()
@@ -364,7 +363,7 @@ bool FLAC::File::hasID3v2Tag() const
// private members
////////////////////////////////////////////////////////////////////////////////
-void FLAC::File::read(bool readProperties, Properties::ReadStyle propertiesStyle)
+void FLAC::File::read(bool readProperties)
{
// Look for an ID3v2 tag
@@ -416,7 +415,7 @@ void FLAC::File::read(bool readProperties, Properties::ReadStyle propertiesStyle
else
streamLength = File::length() - d->streamStart;
- d->properties = new Properties(infoData, streamLength, propertiesStyle);
+ d->properties = new Properties(infoData, streamLength);
}
}
diff --git a/taglib/flac/flacfile.h b/taglib/flac/flacfile.h
index 367a5bf2..e2d15842 100644
--- a/taglib/flac/flacfile.h
+++ b/taglib/flac/flacfile.h
@@ -290,7 +290,7 @@ namespace TagLib {
File(const File &);
File &operator=(const File &);
- void read(bool readProperties, Properties::ReadStyle propertiesStyle);
+ void read(bool readProperties);
void scan();
long findID3v2();
long findID3v1();
diff --git a/taglib/flac/flacproperties.cpp b/taglib/flac/flacproperties.cpp
index f46eadaf..efc9fa1b 100644
--- a/taglib/flac/flacproperties.cpp
+++ b/taglib/flac/flacproperties.cpp
@@ -62,7 +62,7 @@ FLAC::Properties::Properties(ByteVector data, long streamLength, ReadStyle style
read(data, streamLength);
}
-FLAC::Properties::Properties(File *file, ReadStyle style) :
+FLAC::Properties::Properties(File *, ReadStyle style) :
AudioProperties(style),
d(new PropertiesPrivate())
{