Skip to content

Commit

Permalink
removed useless removeFilter calls
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Sep 25, 2020
1 parent 01896d4 commit 377e0cf
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions packages/edit-navigation/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { __ } from '@wordpress/i18n';
import apiFetch from '@wordpress/api-fetch';
import { addQueryArgs } from '@wordpress/url';
import { decodeEntities } from '@wordpress/html-entities';
import { addFilter, removeFilter } from '@wordpress/hooks';
import { addFilter } from '@wordpress/hooks';

/**
* Internal dependencies
Expand Down Expand Up @@ -144,26 +144,6 @@ const fetchLinkSuggestions = (
} );
};

removeFilter(
'navigation.BlockEdit',
'core/block-library/navigation/with-inspector-controls'
);

removeFilter(
'navigation.BlockEdit',
'core/block-library/navigation/with-block-controls'
);

removeFilter(
'navigation.BlockEdit',
'core/block-library/navigation/with-list-view'
);

removeFilter(
'navigation.BlockEdit',
'core/block-library/navigation/with-formatting-controls'
);

export function initialize( id, settings ) {
if ( ! settings.blockNavMenus ) {
addFilter(
Expand Down

0 comments on commit 377e0cf

Please sign in to comment.