summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-12-05 08:41:50 +0100
committerArno <am@disconnect.de>2010-12-05 08:41:50 +0100
commit856d83fb194ca26099e38aaf5e5f4a022d3d23fa (patch)
treee1533f10be09f3344a0f809575c89eb0c8d81d57
parent35046b0a6279a47b9872efbae93ce0e7a8bac648 (diff)
downloadSheMov-856d83fb194ca26099e38aaf5e5f4a022d3d23fa.tar.gz
SheMov-856d83fb194ca26099e38aaf5e5f4a022d3d23fa.tar.bz2
SheMov-856d83fb194ca26099e38aaf5e5f4a022d3d23fa.zip
Code cleanup
Remove debug statements from FileSystemWidget. Also remove useless helper func StringListContains. That was a goodie. I guess I was quite drunk when I wrote that...
-rw-r--r--filesystemwidget.cpp11
-rw-r--r--helper.cpp4
-rw-r--r--helper.h4
3 files changed, 1 insertions, 18 deletions
diff --git a/filesystemwidget.cpp b/filesystemwidget.cpp
index ff73863..8b302dc 100644
--- a/filesystemwidget.cpp
+++ b/filesystemwidget.cpp
@@ -25,12 +25,6 @@
#include <QTextStream>
#include <QSqlQuery>
-//debug
-#include <QDebug>
-#include <QSqlError>
-
-#include <string.h>
-
#include "filesystemwidget.h"
#include "filesystemdirproxy.h"
#include "fileview.h"
@@ -632,10 +626,7 @@ void FileSystemModel::markAsSeen(const QString &path, bool seen){
return;
}
mMarkAsSeenQuery->bindValue(":path", path);
- bool ok = mMarkAsSeenQuery->exec();
- if(!ok){
- qDebug() << mMarkAsSeenQuery->lastError().text();
- }
+ mMarkAsSeenQuery->exec();
mSeen.insert(path, QDateTime::currentDateTime());
}else{
mDeleteFromSeenQuery->bindValue(":path", path);
diff --git a/helper.cpp b/helper.cpp
index dff3584..fdab083 100644
--- a/helper.cpp
+++ b/helper.cpp
@@ -164,10 +164,6 @@ namespace Helper {
return retval;
}
- bool StringListContains::operator()(const QString s, const QString &part) const {
- return s.contains(part);
- }
-
bool SortFileInfoList::operator ()(const QFileInfo &lhs, const QFileInfo &rhs) const {
return lhs.fileName().toLower() < rhs.fileName().toLower();
}
diff --git a/helper.h b/helper.h
index 96816b2..3d01131 100644
--- a/helper.h
+++ b/helper.h
@@ -24,10 +24,6 @@ namespace Helper {
const QString createArchivePath(const QString &path, const QString &md5, bool withMd5 = false);
QPair<QString, QStringList> programData(const QString &prefix, const QString &preferred = QString());
QString durationFromSecs(qint64 secs);
- class StringListContains : public std::binary_function<QString, QString, bool> {
- public:
- bool operator()(const QString s, const QString &part) const;
- };
class SortFileInfoList : public std::binary_function<QFileInfo, QFileInfo, bool> {
public:
bool operator()(const QFileInfo &lhs, const QFileInfo &rhs) const;