diff options
-rw-r--r-- | filesystemwidget.cpp | 11 | ||||
-rw-r--r-- | helper.cpp | 4 | ||||
-rw-r--r-- | helper.h | 4 |
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); @@ -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(); } @@ -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; |