diff --git a/packages/block-library/src/query/edit/query-toolbar.js b/packages/block-library/src/query/edit/query-toolbar.js deleted file mode 100644 index cc2d62a54d529f..00000000000000 --- a/packages/block-library/src/query/edit/query-toolbar.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * WordPress dependencies - */ -import { ToolbarGroup, ToolbarButton } from '@wordpress/components'; -import { __ } from '@wordpress/i18n'; - -/** - * Internal dependencies - */ -import { usePatterns } from '../utils'; - -export default function QueryToolbar( { - openPatternSelectionModal, - name, - clientId, -} ) { - const hasPatterns = !! usePatterns( clientId, name ).length; - - return ( - <> - { hasPatterns && ( - - - { __( 'Replace' ) } - - - ) } - - ); -}