Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
remove atomic block registration
Browse files Browse the repository at this point in the history
  • Loading branch information
gigitux committed Mar 9, 2022
1 parent 5306b48 commit 90da334
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/BlockTypesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ public function register_blocks() {
$block_type_instance = new $block_type_class( $this->asset_api, $this->asset_data_registry, new IntegrationRegistry() );
}

foreach ( self::get_atomic_blocks() as $block_type ) {
$block_type_instance = new AtomicBlock( $this->asset_api, $this->asset_data_registry, new IntegrationRegistry(), $block_type );
}
}

/**
Expand Down Expand Up @@ -232,15 +229,4 @@ protected function get_block_types() {
return $block_types;
}

/**
* Get atomic blocks types.
*
* @return array
*/
protected function get_atomic_blocks() {
return [
'product-sku',
'product-add-to-cart',
];
}
}

0 comments on commit 90da334

Please sign in to comment.