summaryrefslogtreecommitdiff
authorzecke <zecke>2004-12-20 22:00:31 (UTC)
committer zecke <zecke>2004-12-20 22:00:31 (UTC)
commit086e832c16265a086e455ead0e5a64f61e2078e7 (patch) (side-by-side diff)
tree787cf43b3d5a1ef71d45bc16b205632eec0f82fb
parent5f35158ba0e7c2813768aaab6d6ad478dc0271a1 (diff)
downloadopie-086e832c16265a086e455ead0e5a64f61e2078e7.zip
opie-086e832c16265a086e455ead0e5a64f61e2078e7.tar.gz
opie-086e832c16265a086e455ead0e5a64f61e2078e7.tar.bz2
Kill unneeded parameter
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/om3u.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/om3u.cpp b/core/multimedia/opieplayer/om3u.cpp
index 95ed03c..7149a8e 100644
--- a/core/multimedia/opieplayer/om3u.cpp
+++ b/core/multimedia/opieplayer/om3u.cpp
@@ -124,41 +124,41 @@ void Om3u::readPls() { //it's a pls file
void Om3u::write() { //writes list to m3u file
QString list;
QTextStream t(&f);
t.setEncoding(QTextStream::UnicodeUTF8);
if(count()>0) {
for ( QStringList::ConstIterator it = begin(); it != end(); ++it ) {
// odebug << *it << oendl;
t << *it << "\n";
}
}
// f.close();
}
void Om3u::add(const QString &filePath) { //adds to m3u file
append(filePath);
}
void Om3u::remove(const QString &filePath) { //removes from m3u list
QString list, currentFile;
if(count()>0) {
for ( QStringList::ConstIterator it = begin(); it != end(); ++it ) {
currentFile=*it;
// odebug << *it << oendl;
if( filePath != currentFile)
list += currentFile+"\n";
}
f.writeBlock( list, list.length() );
}
}
-void Om3u::deleteFile(const QString &filePath) {//deletes m3u file
+void Om3u::deleteFile(const QString &) {//deletes m3u file
f.close();
f.remove();
}
void Om3u::close() { //closes m3u file
f.close();
}