Skip to content

Commit

Permalink
revert unused changes
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian authored and getdave committed Sep 16, 2024
1 parent 8dcac37 commit 03679f5
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions packages/editor/src/components/preferences-modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
privateApis as preferencesPrivateApis,
} from '@wordpress/preferences';
import { store as interfaceStore } from '@wordpress/interface';
import { store as blockEditorStore } from '@wordpress/block-editor';

/**
* Internal dependencies
Expand All @@ -27,6 +26,7 @@ import PageAttributesCheck from '../page-attributes/check';
import PostTypeSupportCheck from '../post-type-support-check';
import { store as editorStore } from '../../store';
import { unlock } from '../../lock-unlock';
import { useStartPatterns } from '../start-page-options';

const {
PreferencesModal,
Expand All @@ -35,17 +35,6 @@ const {
PreferenceToggleControl,
} = unlock( preferencesPrivateApis );

function useStartPatterns() {
// A pattern is a start pattern if it includes 'core/post-content' in its blockTypes,
// and it has no postTypes declared and the current post type is page or if
// the current post type is part of the postTypes declared.
return useSelect( ( select ) =>
select( blockEditorStore ).getPatternsByBlockTypes(
'core/post-content'
)
);
}

export default function EditorPreferencesModal( { extraSections = {} } ) {
const isLargeViewport = useViewportMatch( 'medium' );
const { isActive, showBlockBreadcrumbsOption } = useSelect(
Expand Down

0 comments on commit 03679f5

Please sign in to comment.