]> granicus.if.org Git - taglib/commitdiff
APE: Remove unused formal parameters.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Fri, 31 Jul 2015 14:18:50 +0000 (23:18 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Fri, 31 Jul 2015 14:18:50 +0000 (23:18 +0900)
taglib/ape/apefile.cpp
taglib/ape/apefile.h
taglib/ape/apeproperties.cpp

index 9feb198c6728c3653ac091cd958ead374056cc1f..c774f5160bdece12fc4e1ab9cb74fdd475de02e8 100644 (file)
@@ -97,20 +97,20 @@ public:
 // public members
 ////////////////////////////////////////////////////////////////////////////////
 
-APE::File::File(FileName file, bool readProperties,
-                Properties::ReadStyle propertiesStyle) : TagLib::File(file)
+APE::File::File(FileName file, bool readProperties, Properties::ReadStyle) :
+  TagLib::File(file),
+  d(new FilePrivate())
 {
-  d = new FilePrivate;
   if(isOpen())
-    read(readProperties, propertiesStyle);
+    read(readProperties);
 }
 
-APE::File::File(IOStream *stream, bool readProperties,
-                Properties::ReadStyle propertiesStyle) : TagLib::File(stream)
+APE::File::File(IOStream *stream, bool readProperties, Properties::ReadStyle) :
+  TagLib::File(stream),
+  d(new FilePrivate())
 {
-  d = new FilePrivate;
   if(isOpen())
-    read(readProperties, propertiesStyle);
+    read(readProperties);
 }
 
 APE::File::~File()
@@ -260,7 +260,7 @@ bool APE::File::hasID3v1Tag() const
 // private members
 ////////////////////////////////////////////////////////////////////////////////
 
-void APE::File::read(bool readProperties, Properties::ReadStyle /* propertiesStyle */)
+void APE::File::read(bool readProperties)
 {
   // Look for an ID3v2 tag
 
index f2b6c672b52c1626de6db3ab0cf79dc6e9256b30..1a64f8b5489a5eb8c8492a257341d9d445c86723 100644 (file)
@@ -215,7 +215,7 @@ namespace TagLib {
       File(const File &);
       File &operator=(const File &);
 
-      void read(bool readProperties, Properties::ReadStyle propertiesStyle);
+      void read(bool readProperties);
       long findAPE();
       long findID3v1();
       long findID3v2();
index e150ba6d8ae9b8765ad85cd756cc6dc603ba7add..4a339456e1e2ee721a92c9d242bd7d2137f53613 100644 (file)
@@ -63,7 +63,7 @@ public:
 // public members
 ////////////////////////////////////////////////////////////////////////////////
 
-APE::Properties::Properties(File *file, ReadStyle style) :
+APE::Properties::Properties(File *, ReadStyle style) :
   AudioProperties(style),
   d(new PropertiesPrivate())
 {