original_string: public function removeDashboard($idDashboard, $login='')
      {
          $login = $login ? $login : Piwik::getCurrentUserLogin();
  
          Piwik::checkUserHasSuperUserAccessOrIsTheUser($login);
  
          $this->model->deleteDashboardForUser($idDashboard, $login);
      }
code: public function removeDashboard($idDashboard, $login='')
      {
          $login = $login ? $login : Piwik::getCurrentUserLogin();
  
          Piwik::checkUserHasSuperUserAccessOrIsTheUser($login);
  
          $this->model->deleteDashboardForUser($idDashboard, $login);
      }
code_tokens: public function removeDashboard ( $ idDashboard , $ login = '' ) { $ login = $ login ? $ login : Piwik :: getCurrentUserLogin ( ) ; Piwik :: checkUserHasSuperUserAccessOrIsTheUser ( $ login ) ; $ this -> model -> deleteDashboardForUser ( $ idDashboard , $ login ) ; }
docstring: Removes a dashboard according to given dashboard id and login
  
  Note: Only a super user is able to remove dashboards for other users
  
  Also note: It is allowed to delete the first dashboard for a user, BUT
  that will cause buggy behavior if a new dashboard is not immediately added.
  Deleting the first dashboard (with ID = 1) should only be done for automation
  purposes.
  
  @param int $idDashboard id of the dashboard to be removed
  @param string $login  Login of the dashboard user [defaults to current user]
docstring_tokens: Removes a dashboard according to given dashboard id and login