Skip to content

Commit

Permalink
Dev: Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Aug 18, 2016
1 parent 83aaa58 commit 415654d
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions application/core/plugins/CintLink/CintLink.php
Expand Up @@ -509,35 +509,6 @@ public function beforeSurveyActivate()
}
}

/**
* Returns true if there is a blocking Cint order.
* Blocking in state 'hold', 'new' or 'live'.
* @param int $surveyId
* @return boolean
*/
protected function shouldWeCreateHiddenQuestion($surveyId)
{
/*
$orders = $this->getOrders(array(
'sid' => $surveyId,
'deleted' => 0,
));
// TODO: What if user is not logged in?
CintLinkOrder::updateOrders($orders);
*/

$hasBlocking = CintLinkOrder::hasAnyBlockingOrders($surveyId);
$limesurveyOrgKey = Yii::app()->user->getState('limesurveyOrgKey');

if ($hasBlocking && empty($limesurveyOrgKey))
{
// There's a blocking order but user is not logged in at limesurvey.org
}
else
{
}
}

/**
* Create hidden question that will be prefilled with GUID from Cint
* or other panel.
Expand Down

0 comments on commit 415654d

Please sign in to comment.