forked from qt-creator/qt-creator
Remove debug code
This commit is contained in:
@@ -44,12 +44,9 @@
|
|||||||
#include <QtCore/QMap>
|
#include <QtCore/QMap>
|
||||||
#include <QtCore/QCoreApplication>
|
#include <QtCore/QCoreApplication>
|
||||||
|
|
||||||
#include <QtCore/QDebug>
|
|
||||||
#include <QtCore/QFileInfo>
|
#include <QtCore/QFileInfo>
|
||||||
#include <QtGui/QMessageBox>
|
#include <QtGui/QMessageBox>
|
||||||
|
|
||||||
enum { debug = 0 };
|
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
|
|
||||||
typedef QList<IVersionControl *> VersionControlList;
|
typedef QList<IVersionControl *> VersionControlList;
|
||||||
@@ -115,7 +112,6 @@ public:
|
|||||||
{
|
{
|
||||||
Q_ASSERT(directory.startsWith(topLevel));
|
Q_ASSERT(directory.startsWith(topLevel));
|
||||||
|
|
||||||
qDebug() << "New cache entries:" << vc->displayName() << topLevel << directory;
|
|
||||||
VcsInfo *newInfo = new VcsInfo(vc, topLevel);
|
VcsInfo *newInfo = new VcsInfo(vc, topLevel);
|
||||||
bool createdNewInfo(true);
|
bool createdNewInfo(true);
|
||||||
// Do we have a matching VcsInfo already?
|
// Do we have a matching VcsInfo already?
|
||||||
@@ -178,11 +174,8 @@ IVersionControl* VcsManager::findVersionControlForDirectory(const QString &direc
|
|||||||
if (directory.isEmpty())
|
if (directory.isEmpty())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
qDebug() << "Searching Vcs for:" << directory;
|
|
||||||
|
|
||||||
VcsManagerPrivate::VcsInfo * cachedData = m_d->findUpInCache(directory);
|
VcsManagerPrivate::VcsInfo * cachedData = m_d->findUpInCache(directory);
|
||||||
if (cachedData) {
|
if (cachedData) {
|
||||||
qDebug() << "Found in Cache:" << cachedData->versionControl->displayName() << cachedData->topLevel;
|
|
||||||
if (topLevelDirectory)
|
if (topLevelDirectory)
|
||||||
*topLevelDirectory = cachedData->topLevel;
|
*topLevelDirectory = cachedData->topLevel;
|
||||||
return cachedData->versionControl;
|
return cachedData->versionControl;
|
||||||
|
Reference in New Issue
Block a user