Skip to content

Commit

Permalink
Remove unused code in Taxonomies panel (#8349)
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolosw authored Aug 2, 2018
1 parent b2ec406 commit 32beb16
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions edit-post/components/sidebar/post-taxonomies/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,12 @@
* WordPress dependencies
*/
import { PostTaxonomies as PostTaxonomiesForm, PostTaxonomiesCheck } from '@wordpress/editor';
import { compose } from '@wordpress/compose';
import { withSelect, withDispatch } from '@wordpress/data';

/**
* Internal dependencies
*/
import TaxonomyPanel from './taxonomy-panel';

/**
* Module Constants
*/
const PANEL_NAME = 'post-taxonomies';

function PostTaxonomies() {
return (
<PostTaxonomiesCheck>
Expand All @@ -31,16 +24,4 @@ function PostTaxonomies() {
);
}

export default compose( [
withSelect( ( select ) => {
return {
isOpened: select( 'core/edit-post' ).isEditorSidebarPanelOpened( PANEL_NAME ),
};
} ),
withDispatch( ( dispatch ) => ( {
onTogglePanel() {
return dispatch( 'core/edit-post' ).toggleGeneralSidebarEditorPanel( PANEL_NAME );
},
} ) ),
] )( PostTaxonomies );

export default PostTaxonomies;

0 comments on commit 32beb16

Please sign in to comment.