diff --git a/packages/edit-site/src/components/global-styles/screen-revisions/get-revision-changes.js b/packages/edit-site/src/components/global-styles/screen-revisions/get-revision-changes.js index 8ca9bf13e173da..ad1dbc6e1cbb86 100644 --- a/packages/edit-site/src/components/global-styles/screen-revisions/get-revision-changes.js +++ b/packages/edit-site/src/components/global-styles/screen-revisions/get-revision-changes.js @@ -23,28 +23,6 @@ const translationMap = { 'typography.fontWeight': __( 'font weight' ), }; -/** - * Returns an array of translated strings describing high level global styles and settings. - * - * @param {Object} revision - * @param {Object} revision.settings Global styles settings. - * @param {Object} revision.styles Global styles. - * @return {string[] | []} An array of translated labels. - */ -export function getGlobalStylesChanges( { settings = {}, styles = {} } ) { - const changes = []; - if ( Object.keys( settings ).length > 0 ) { - changes.push( __( 'Global settings' ) ); - } - Object.keys( styles ).forEach( ( key ) => { - if ( translationMap[ key ] ) { - changes.push( translationMap[ key ] ); - } - } ); - - return changes; -} - function getTranslation( key, blockNames ) { if ( translationMap[ key ] ) { return translationMap[ key ];