@@ -16,10 +16,7 @@ import {
16
16
store as editorStore ,
17
17
} from '@wordpress/editor' ;
18
18
import { useSelect , useDispatch } from '@wordpress/data' ;
19
- import {
20
- BlockBreadcrumb ,
21
- privateApis as blockEditorPrivateApis ,
22
- } from '@wordpress/block-editor' ;
19
+ import { BlockBreadcrumb } from '@wordpress/block-editor' ;
23
20
import { Button , ScrollLock , Popover } from '@wordpress/components' ;
24
21
import { useViewportMatch } from '@wordpress/compose' ;
25
22
import { PluginArea } from '@wordpress/plugins' ;
@@ -52,9 +49,6 @@ import WelcomeGuide from '../welcome-guide';
52
49
import ActionsPanel from './actions-panel' ;
53
50
import StartPageOptions from '../start-page-options' ;
54
51
import { store as editPostStore } from '../../store' ;
55
- import { unlock } from '../../lock-unlock' ;
56
-
57
- const { BlockRemovalWarningModal } = unlock ( blockEditorPrivateApis ) ;
58
52
59
53
const interfaceLabels = {
60
54
/* translators: accessibility text for the editor top bar landmark region. */
@@ -69,12 +63,6 @@ const interfaceLabels = {
69
63
footer : __ ( 'Editor footer' ) ,
70
64
} ;
71
65
72
- const blockRemovalRules = {
73
- 'core/footnotes' : __ (
74
- 'The Footnotes block displays all footnotes found in the content. Note that any footnotes in the content will persist after removing this block.'
75
- ) ,
76
- } ;
77
-
78
66
function Layout ( { styles } ) {
79
67
const isMobileViewport = useViewportMatch ( 'medium' , '<' ) ;
80
68
const isHugeViewport = useViewportMatch ( 'huge' , '>=' ) ;
@@ -214,7 +202,6 @@ function Layout( { styles } ) {
214
202
< LocalAutosaveMonitor />
215
203
< EditPostKeyboardShortcuts />
216
204
< EditorKeyboardShortcutsRegister />
217
- < BlockRemovalWarningModal rules = { blockRemovalRules } />
218
205
< SettingsSidebar />
219
206
< InterfaceSkeleton
220
207
isDistractionFree = { isDistractionFree && isLargeViewport }
0 commit comments