Classes/Lightwerk/SurfCaptain/Domain/Repository/Preset/AbstractRepository.php
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 . '"');
    }
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 . '"');
    }
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 . '"' ) ; }
Removes a preset from this repository.

@param string $identifier
@return void
@throws Exception
Removes a preset from this repository .