diff --git a/packages/block-editor/src/components/block-tools/zoom-out-toolbar.js b/packages/block-editor/src/components/block-tools/zoom-out-toolbar.js
index b8736de11481a0..2b5c6a3e3cea6e 100644
--- a/packages/block-editor/src/components/block-tools/zoom-out-toolbar.js
+++ b/packages/block-editor/src/components/block-tools/zoom-out-toolbar.js
@@ -1,7 +1,7 @@
/**
* WordPress dependencies
*/
-import { dragHandle, trash, edit } from '@wordpress/icons';
+import { dragHandle, trash } from '@wordpress/icons';
import { Button, ToolbarButton } from '@wordpress/components';
import { useSelect, useDispatch } from '@wordpress/data';
import { store as blocksStore } from '@wordpress/blocks';
@@ -15,7 +15,6 @@ import BlockDraggable from '../block-draggable';
import BlockMover from '../block-mover';
import Shuffle from '../block-toolbar/shuffle';
import NavigableToolbar from '../navigable-toolbar';
-import { unlock } from '../../lock-unlock';
export default function ZoomOutToolbar( { clientId, __unstableContentRef } ) {
const selected = useSelect(
@@ -74,12 +73,9 @@ export default function ZoomOutToolbar( { clientId, __unstableContentRef } ) {
isPrevBlockTemplatePart,
canRemove,
canMove,
- setIsInserterOpened,
} = selected;
- const { removeBlock, __unstableSetEditorMode, resetZoomLevel } = unlock(
- useDispatch( blockEditorStore )
- );
+ const { removeBlock } = useDispatch( blockEditorStore );
const showBlockDraggable = canMove && ! isBlockTemplatePart;
@@ -123,23 +119,6 @@ export default function ZoomOutToolbar( { clientId, __unstableContentRef } ) {
) }
- { ! isBlockTemplatePart && (
- {
- // Setting may be undefined.
- if ( typeof setIsInserterOpened === 'function' ) {
- setIsInserterOpened( false );
- }
- __unstableSetEditorMode( 'edit' );
- resetZoomLevel();
- __unstableContentRef.current?.focus();
- } }
- />
- ) }
-
{ canRemove && ! isBlockTemplatePart && (
{
removeBlock( clientId );
+ __unstableContentRef.current?.focus();
} }
/>
) }