public function removeLayout(Layout $layout)
    {
        if (null === $layout->getSite()) {
            return false;
        }

        $layoutfile = $this->getLayoutFile($layout);
        @unlink($layoutfile);
    }
public function removeLayout(Layout $layout)
    {
        if (null === $layout->getSite()) {
            return false;
        }

        $layoutfile = $this->getLayoutFile($layout);
        @unlink($layoutfile);
    }
public function removeLayout ( Layout $ layout ) { if ( null === $ layout -> getSite ( ) ) { return false ; } $ layoutfile = $ this -> getLayoutFile ( $ layout ) ; @ unlink ( $ layoutfile ) ; }
Unlink a file script of a layout.

@param Layout $layout The layout to update
Unlink a file script of a layout .