Git: Remove wrong assertions

Changed in 89523c14

Change-Id: I872c37633a877e982046b2a44266159d86defbde
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Orgad Shaneh
2013-07-02 22:59:23 +03:00
committed by Orgad Shaneh
parent 26e97398ab
commit 3cefd0288e

View File

@@ -293,7 +293,6 @@ void BranchDialog::log()
void BranchDialog::merge() void BranchDialog::merge()
{ {
QModelIndex idx = selectedIndex(); QModelIndex idx = selectedIndex();
QTC_CHECK(m_model->isLocal(m_model->currentBranch())); // otherwise the button would not be enabled!
QTC_CHECK(idx != m_model->currentBranch()); // otherwise the button would not be enabled! QTC_CHECK(idx != m_model->currentBranch()); // otherwise the button would not be enabled!
const QString branch = m_model->branchName(idx); const QString branch = m_model->branchName(idx);
@@ -305,7 +304,6 @@ void BranchDialog::merge()
void BranchDialog::rebase() void BranchDialog::rebase()
{ {
QModelIndex idx = selectedIndex(); QModelIndex idx = selectedIndex();
QTC_CHECK(m_model->isLocal(m_model->currentBranch())); // otherwise the button would not be enabled!
QTC_CHECK(idx != m_model->currentBranch()); // otherwise the button would not be enabled! QTC_CHECK(idx != m_model->currentBranch()); // otherwise the button would not be enabled!
const QString baseBranch = m_model->branchName(idx); const QString baseBranch = m_model->branchName(idx);