on xenial help sign in
Get rid of the debug-output.
f662881Mirco Müller
tests/mocks/Unity/Notifications/MockNotification.cpp−5
@@ -19,8 +19,6 @@
19
19
20#include "MockNotification.h"
20#include "MockNotification.h"
21
21
22−#include <QDebug>
23−
24struct MockNotificationPrivate {
22struct MockNotificationPrivate {
25 int id;
23 int id;
26 QString summary;
24 QString summary;
@@ -70,9 +68,7 @@ int MockNotification::getID() const {
70}
68}
71
69
72void MockNotification::setID(const int id) {
70void MockNotification::setID(const int id) {
73− qDebug() << "id: " << id;
74 p->id = id;
71 p->id = id;
75− qDebug() << "id: " << p->id;
76}
72}
77
73
78int MockNotification::getValue() const {
74int MockNotification::getValue() const {
@@ -175,6 +171,5 @@ void MockNotification::invokeAction(const QString &action) {
175}
171}
176
172
177void MockNotification::close() {
173void MockNotification::close() {
178− qDebug() << "close() called, " << p->id;
179 Q_EMIT completed(p->id);
174 Q_EMIT completed(p->id);
180}
175}
tests/mocks/Unity/Notifications/MockNotificationModel.cpp−4
@@ -28,7 +28,6 @@
28#include <QMap>
28#include <QMap>
29#include <QStringListModel>
29#include <QStringListModel>
30#include <QQmlEngine>
30#include <QQmlEngine>
31−#include <QDebug>
32
31
33using namespace unity::shell::notifications;
32using namespace unity::shell::notifications;
34
33
@@ -119,7 +118,6 @@ bool MockNotificationModel::hasNotification(int id) const {
119}
118}
120
119
121void MockNotificationModel::remove(const int id) {
120void MockNotificationModel::remove(const int id) {
122− qDebug() << "remove(" << id << ")";
123 for(int i = 0; i < m_queue.size(); i++) {
121 for(int i = 0; i < m_queue.size(); i++) {
124 if(m_queue[i]->getID() == id) {
122 if(m_queue[i]->getID() == id) {
125 deleteFromVisible(i);
123 deleteFromVisible(i);
@@ -136,7 +134,6 @@ void MockNotificationModel::deleteFirst() {
136}
134}
137
135
138void MockNotificationModel::deleteFromVisible(int loc) {
136void MockNotificationModel::deleteFromVisible(int loc) {
139− qDebug() << "deleteFromVisible(" << loc << ")";
140 QModelIndex deletePoint = QModelIndex();
137 QModelIndex deletePoint = QModelIndex();
141 beginRemoveRows(deletePoint, loc, loc);
138 beginRemoveRows(deletePoint, loc, loc);
142 m_queue.erase(m_queue.begin() + loc);
139 m_queue.erase(m_queue.begin() + loc);
@@ -177,7 +174,6 @@ QHash<int, QByteArray> MockNotificationModel::roleNames() const {
177}
174}
178
175
179void MockNotificationModel::onCompleted(int id) {
176void MockNotificationModel::onCompleted(int id) {
180− qDebug() << "onCompleted(" << id << ")";
181 remove(id);
177 remove(id);
182}
178}
183
179