Skip to content

Commit

Permalink
Remove unnecessary constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Copons committed Mar 24, 2021
1 parent cc29f37 commit 14bfe0e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,12 @@ export function getTemplateLocation( slug ) {
}

export function getUnusedTemplates( templates, showOnFront ) {
const unusedTemplates = [];

const templateSlugs = map( templates, 'slug' );
const supersededTemplates = templates.filter( ( { slug } ) =>
isTemplateSuperseded( slug, templateSlugs, showOnFront )
);

return [ ...supersededTemplates, ...unusedTemplates ];
return supersededTemplates;
}

export function getTemplatesLocationMap( templates ) {
Expand Down

0 comments on commit 14bfe0e

Please sign in to comment.