original_string: public function remove($identifier)
      {
          $presets = $this->loadPresets();
          if (empty($presets[$identifier])) {
              throw new Exception('Could not find preset', 1410549993);
          }
          unset($presets[$identifier]);
          $this->savePresets($presets, 'Removes preset with identifier "' . $identifier . '"');
      }
code: public function remove($identifier)
      {
          $presets = $this->loadPresets();
          if (empty($presets[$identifier])) {
              throw new Exception('Could not find preset', 1410549993);
          }
          unset($presets[$identifier]);
          $this->savePresets($presets, 'Removes preset with identifier "' . $identifier . '"');
      }
code_tokens: public function remove ( $ identifier ) { $ presets = $ this -> loadPresets ( ) ; if ( empty ( $ presets [ $ identifier ] ) ) { throw new Exception ( 'Could not find preset' , 1410549993 ) ; } unset ( $ presets [ $ identifier ] ) ; $ this -> savePresets ( $ presets , 'Removes preset with identifier "' . $ identifier . '"' ) ; }
docstring: Removes a preset from this repository.
  
  @param string $identifier
  @return void
  @throws Exception
docstring_tokens: Removes a preset from this repository .