source/Core/UtilsView.php
private function removeDefaultBlocks($activeBlockTemplates, $templateBlocksToExchange)
    {
        $templateBlocks = [];
        foreach ($activeBlockTemplates as $activeBlockTemplate) {
            if (!in_array($this->prepareBlockKey($activeBlockTemplate), $templateBlocksToExchange['theme'])
                || $activeBlockTemplate['OXTHEME']
            ) {
                $templateBlocks[] = $activeBlockTemplate;
            }
        }

        return $templateBlocks;
    }
private function removeDefaultBlocks($activeBlockTemplates, $templateBlocksToExchange)
    {
        $templateBlocks = [];
        foreach ($activeBlockTemplates as $activeBlockTemplate) {
            if (!in_array($this->prepareBlockKey($activeBlockTemplate), $templateBlocksToExchange['theme'])
                || $activeBlockTemplate['OXTHEME']
            ) {
                $templateBlocks[] = $activeBlockTemplate;
            }
        }

        return $templateBlocks;
    }
private function removeDefaultBlocks ( $ activeBlockTemplates , $ templateBlocksToExchange ) { $ templateBlocks = [ ] ; foreach ( $ activeBlockTemplates as $ activeBlockTemplate ) { if ( ! in_array ( $ this -> prepareBlockKey ( $ activeBlockTemplate ) , $ templateBlocksToExchange [ 'theme' ] ) || $ activeBlockTemplate [ 'OXTHEME' ] ) { $ templateBlocks [ ] = $ activeBlockTemplate ; } } return $ templateBlocks ; }
Remove default blocks whose have duplicate for specific theme.

@param array $activeBlockTemplates
@param array $templateBlocksToExchange

@return array
Remove default blocks whose have duplicate for specific theme .