on xenial help sign in
Get rid of the debug-output.
commitf662881c335bfd220b01a434a101542b1f887fff authorMirco Müller <mirco.mueller@ubuntu.com> dateTue 20 Jan 2015, 17:04 (12 years ago) parenta5a32d1
2 files changed−9
tests/mocks/Unity/Notifications/MockNotification.cpp−5 tests/mocks/Unity/Notifications/MockNotificationModel.cpp−4
tests/mocks/Unity/Notifications/MockNotification.cpp−5
@@ -19,8 +19,6 @@
1919
2020#include "MockNotification.h"
2121
22−#include <QDebug>
23−
2422struct MockNotificationPrivate {
2523 int id;
2624 QString summary;
@@ -70,9 +68,7 @@ int MockNotification::getID() const {
7068}
7169
7270void MockNotification::setID(const int id) {
73− qDebug() << "id: " << id;
7471 p->id = id;
75− qDebug() << "id: " << p->id;
7672}
7773
7874int MockNotification::getValue() const {
@@ -175,6 +171,5 @@ void MockNotification::invokeAction(const QString &action) {
175171}
176172
177173void MockNotification::close() {
178− qDebug() << "close() called, " << p->id;
179174 Q_EMIT completed(p->id);
180175}
tests/mocks/Unity/Notifications/MockNotificationModel.cpp−4
@@ -28,7 +28,6 @@
2828#include <QMap>
2929#include <QStringListModel>
3030#include <QQmlEngine>
31−#include <QDebug>
3231
3332using namespace unity::shell::notifications;
3433
@@ -119,7 +118,6 @@ bool MockNotificationModel::hasNotification(int id) const {
119118}
120119
121120void MockNotificationModel::remove(const int id) {
122− qDebug() << "remove(" << id << ")";
123121 for(int i = 0; i < m_queue.size(); i++) {
124122 if(m_queue[i]->getID() == id) {
125123 deleteFromVisible(i);
@@ -136,7 +134,6 @@ void MockNotificationModel::deleteFirst() {
136134}
137135
138136void MockNotificationModel::deleteFromVisible(int loc) {
139− qDebug() << "deleteFromVisible(" << loc << ")";
140137 QModelIndex deletePoint = QModelIndex();
141138 beginRemoveRows(deletePoint, loc, loc);
142139 m_queue.erase(m_queue.begin() + loc);
@@ -177,7 +174,6 @@ QHash<int, QByteArray> MockNotificationModel::roleNames() const {
177174}
178175
179176void MockNotificationModel::onCompleted(int id) {
180− qDebug() << "onCompleted(" << id << ")";
181177 remove(id);
182178}
183179