Skip to content

Commit

Permalink
Remove unnecessary code.
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Nov 25, 2021
1 parent 30541f8 commit f15f36c
Showing 1 changed file with 0 additions and 6 deletions.
@@ -1,7 +1,6 @@
/**
* WordPress dependencies
*/
import { createBlock } from '@wordpress/blocks';
import {
Placeholder,
Button,
Expand Down Expand Up @@ -145,11 +144,6 @@ export default function NavigationPlaceholder( {
onFinishMenuCreation( [] );
};

const onCreateAllPages = () => {
const block = [ createBlock( 'core/page-list' ) ];
onFinishMenuCreation( block );
};

useEffect( () => {
// If the user selected a menu but we had to wait for menu items to
// finish resolving, then create the block once resolution finishes.
Expand Down

0 comments on commit f15f36c

Please sign in to comment.