forked from qt-creator/qt-creator
Core: Remove unused functionality to checkout from VCS
Change-Id: I1ee17142e14200c5ae9597bbf9bee3f3978704f4 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -367,23 +367,6 @@ bool VcsManager::promptToDelete(const QString &fileName)
|
||||
return true;
|
||||
}
|
||||
|
||||
IVersionControl *VcsManager::checkout(const QString &versionControlType,
|
||||
const QString &directory,
|
||||
const QByteArray &url)
|
||||
{
|
||||
foreach (IVersionControl *versionControl, allVersionControls()) {
|
||||
if (versionControl->displayName() == versionControlType
|
||||
&& versionControl->supportsOperation(IVersionControl::CheckoutOperation)) {
|
||||
if (versionControl->vcsCheckout(directory, url)) {
|
||||
d->cache(versionControl, directory, directory);
|
||||
return versionControl;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool VcsManager::promptToDelete(IVersionControl *vc, const QString &fileName)
|
||||
{
|
||||
QTC_ASSERT(vc, return true);
|
||||
|
||||
Reference in New Issue
Block a user