original_string: public static function remove_related_competency($competencyid, $relatedcompetencyid) {
          $params = self::validate_parameters(self::remove_related_competency_parameters(), array(
              'competencyid' => $competencyid,
              'relatedcompetencyid' => $relatedcompetencyid
          ));
          $competency = api::read_competency($params['competencyid']);
          self::validate_context($competency->get_context());
  
          return api::remove_related_competency($params['competencyid'], $params['relatedcompetencyid']);
      }
code: public static function remove_related_competency($competencyid, $relatedcompetencyid) {
          $params = self::validate_parameters(self::remove_related_competency_parameters(), array(
              'competencyid' => $competencyid,
              'relatedcompetencyid' => $relatedcompetencyid
          ));
          $competency = api::read_competency($params['competencyid']);
          self::validate_context($competency->get_context());
  
          return api::remove_related_competency($params['competencyid'], $params['relatedcompetencyid']);
      }
code_tokens: public static function remove_related_competency ( $ competencyid , $ relatedcompetencyid ) { $ params = self :: validate_parameters ( self :: remove_related_competency_parameters ( ) , array ( 'competencyid' => $ competencyid , 'relatedcompetencyid' => $ relatedcompetencyid ) ) ; $ competency = api :: read_competency ( $ params [ 'competencyid' ] ) ; self :: validate_context ( $ competency -> get_context ( ) ) ; return api :: remove_related_competency ( $ params [ 'competencyid' ] , $ params [ 'relatedcompetencyid' ] ) ; }
docstring: Removes a related competency.
  
  @param int $competencyid
  @param int $relatedcompetencyid
  @return bool
docstring_tokens: Removes a related competency .