forked from qt-creator/qt-creator
VcsManager: Remove two unused methods
Change-Id: Ifbaad8bc772ed6911333efe324d9254b6bce5094 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -352,24 +352,6 @@ IVersionControl *VcsManager::checkout(const QString &versionControlType,
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool VcsManager::findVersionControl(const QString &versionControlType)
|
||||
{
|
||||
foreach (IVersionControl * versionControl, allVersionControls()) {
|
||||
if (versionControl->displayName() == versionControlType)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
QString VcsManager::repositoryUrl(const QString &directory)
|
||||
{
|
||||
IVersionControl *vc = findVersionControlForDirectory(directory);
|
||||
|
||||
if (vc && vc->supportsOperation(Core::IVersionControl::GetRepositoryRootOperation))
|
||||
return vc->vcsGetRepositoryURL(directory);
|
||||
return QString();
|
||||
}
|
||||
|
||||
bool VcsManager::promptToDelete(IVersionControl *vc, const QString &fileName)
|
||||
{
|
||||
QTC_ASSERT(vc, return true);
|
||||
|
||||
@@ -71,10 +71,6 @@ public:
|
||||
static IVersionControl *checkout(const QString &versionControlType,
|
||||
const QString &directory,
|
||||
const QByteArray &url);
|
||||
// Used only by Trac plugin.
|
||||
bool findVersionControl(const QString &versionControl);
|
||||
// Used only by Trac plugin.
|
||||
static QString repositoryUrl(const QString &directory);
|
||||
|
||||
// Shows a confirmation dialog, whether the file should also be deleted
|
||||
// from revision control. Calls vcsDelete on the file. Returns false
|
||||
|
||||
Reference in New Issue
Block a user