forked from qt-creator/qt-creator
VcsManager: Remove dead code
Change-Id: If23eadb7368824cf1cf6f77602ef056d6d0bcb88 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -97,21 +97,6 @@ public:
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
VcsInfo *findUpInCache(const QString &directory)
|
|
||||||
{
|
|
||||||
VcsInfo *result = 0;
|
|
||||||
const QChar slash = QLatin1Char('/');
|
|
||||||
// Split the path, trying to find the matching repository. We start from the reverse
|
|
||||||
// in order to detected nested repositories correctly (say, a git checkout under SVN).
|
|
||||||
for (int pos = directory.size() - 1; pos >= 0; pos = directory.lastIndexOf(slash, pos) - 1) {
|
|
||||||
const QString directoryPart = directory.left(pos);
|
|
||||||
result = findInCache(directoryPart);
|
|
||||||
if (result != 0)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void clearCache()
|
void clearCache()
|
||||||
{
|
{
|
||||||
m_cachedMatches.clear();
|
m_cachedMatches.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user