From 0f9d611b7442454927d101ad5260e0b20f3b3a96 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 18 Sep 2019 13:06:34 +0200 Subject: [PATCH] Remove unused Google Fonts SVGs (#3289) --- .../stories-editor/font-names/arimo.svg | 1 - .../images/stories-editor/font-names/lato.svg | 1 - .../images/stories-editor/font-names/lora.svg | 1 - .../font-names/merriweather.svg | 1 - .../stories-editor/font-names/montserrat.svg | 1 - .../stories-editor/font-names/noto-sans.svg | 1 - .../font-names/open-sans-condensed.svg | 1 - .../stories-editor/font-names/open-sans.svg | 1 - .../stories-editor/font-names/oswald.svg | 1 - .../font-names/playfair-display.svg | 1 - .../font-names/pt-sans-narrow.svg | 1 - .../stories-editor/font-names/pt-sans.svg | 1 - .../stories-editor/font-names/pt-serif.svg | 1 - .../stories-editor/font-names/raleway.svg | 1 - .../font-names/roboto-condensed.svg | 1 - .../stories-editor/font-names/roboto-slab.svg | 1 - .../stories-editor/font-names/roboto.svg | 1 - .../stories-editor/font-names/slabo-27.svg | 1 - .../font-names/source-sans-pro.svg | 1 - .../stories-editor/font-names/ubuntu.svg | 1 - assets/src/stories-editor/constants.js | 47 ------------------- 21 files changed, 67 deletions(-) delete mode 100644 assets/images/stories-editor/font-names/arimo.svg delete mode 100644 assets/images/stories-editor/font-names/lato.svg delete mode 100644 assets/images/stories-editor/font-names/lora.svg delete mode 100644 assets/images/stories-editor/font-names/merriweather.svg delete mode 100644 assets/images/stories-editor/font-names/montserrat.svg delete mode 100644 assets/images/stories-editor/font-names/noto-sans.svg delete mode 100644 assets/images/stories-editor/font-names/open-sans-condensed.svg delete mode 100644 assets/images/stories-editor/font-names/open-sans.svg delete mode 100644 assets/images/stories-editor/font-names/oswald.svg delete mode 100644 assets/images/stories-editor/font-names/playfair-display.svg delete mode 100644 assets/images/stories-editor/font-names/pt-sans-narrow.svg delete mode 100644 assets/images/stories-editor/font-names/pt-sans.svg delete mode 100644 assets/images/stories-editor/font-names/pt-serif.svg delete mode 100644 assets/images/stories-editor/font-names/raleway.svg delete mode 100644 assets/images/stories-editor/font-names/roboto-condensed.svg delete mode 100644 assets/images/stories-editor/font-names/roboto-slab.svg delete mode 100644 assets/images/stories-editor/font-names/roboto.svg delete mode 100644 assets/images/stories-editor/font-names/slabo-27.svg delete mode 100644 assets/images/stories-editor/font-names/source-sans-pro.svg delete mode 100644 assets/images/stories-editor/font-names/ubuntu.svg diff --git a/assets/images/stories-editor/font-names/arimo.svg b/assets/images/stories-editor/font-names/arimo.svg deleted file mode 100644 index f9b92010397..00000000000 --- a/assets/images/stories-editor/font-names/arimo.svg +++ /dev/null @@ -1 +0,0 @@ -Arimo diff --git a/assets/images/stories-editor/font-names/lato.svg b/assets/images/stories-editor/font-names/lato.svg deleted file mode 100644 index 778049fc1c9..00000000000 --- a/assets/images/stories-editor/font-names/lato.svg +++ /dev/null @@ -1 +0,0 @@ -Lato diff --git a/assets/images/stories-editor/font-names/lora.svg b/assets/images/stories-editor/font-names/lora.svg deleted file mode 100644 index 1f048c7783f..00000000000 --- a/assets/images/stories-editor/font-names/lora.svg +++ /dev/null @@ -1 +0,0 @@ -Lora diff --git a/assets/images/stories-editor/font-names/merriweather.svg b/assets/images/stories-editor/font-names/merriweather.svg deleted file mode 100644 index f24546e5ce4..00000000000 --- a/assets/images/stories-editor/font-names/merriweather.svg +++ /dev/null @@ -1 +0,0 @@ -Merriweather diff --git a/assets/images/stories-editor/font-names/montserrat.svg b/assets/images/stories-editor/font-names/montserrat.svg deleted file mode 100644 index 208c63c3ac3..00000000000 --- a/assets/images/stories-editor/font-names/montserrat.svg +++ /dev/null @@ -1 +0,0 @@ -Montserrat diff --git a/assets/images/stories-editor/font-names/noto-sans.svg b/assets/images/stories-editor/font-names/noto-sans.svg deleted file mode 100644 index 6747799cbf1..00000000000 --- a/assets/images/stories-editor/font-names/noto-sans.svg +++ /dev/null @@ -1 +0,0 @@ -Noto Sans diff --git a/assets/images/stories-editor/font-names/open-sans-condensed.svg b/assets/images/stories-editor/font-names/open-sans-condensed.svg deleted file mode 100644 index a21895620bc..00000000000 --- a/assets/images/stories-editor/font-names/open-sans-condensed.svg +++ /dev/null @@ -1 +0,0 @@ -Open Sans Condensed diff --git a/assets/images/stories-editor/font-names/open-sans.svg b/assets/images/stories-editor/font-names/open-sans.svg deleted file mode 100644 index 60fec9c2c28..00000000000 --- a/assets/images/stories-editor/font-names/open-sans.svg +++ /dev/null @@ -1 +0,0 @@ -Open Sans diff --git a/assets/images/stories-editor/font-names/oswald.svg b/assets/images/stories-editor/font-names/oswald.svg deleted file mode 100644 index af00708f931..00000000000 --- a/assets/images/stories-editor/font-names/oswald.svg +++ /dev/null @@ -1 +0,0 @@ -Oswald diff --git a/assets/images/stories-editor/font-names/playfair-display.svg b/assets/images/stories-editor/font-names/playfair-display.svg deleted file mode 100644 index 8939f962ab8..00000000000 --- a/assets/images/stories-editor/font-names/playfair-display.svg +++ /dev/null @@ -1 +0,0 @@ -Playfair Display diff --git a/assets/images/stories-editor/font-names/pt-sans-narrow.svg b/assets/images/stories-editor/font-names/pt-sans-narrow.svg deleted file mode 100644 index 4bb884367f3..00000000000 --- a/assets/images/stories-editor/font-names/pt-sans-narrow.svg +++ /dev/null @@ -1 +0,0 @@ -PT Sans Narrow diff --git a/assets/images/stories-editor/font-names/pt-sans.svg b/assets/images/stories-editor/font-names/pt-sans.svg deleted file mode 100644 index 5db58a88190..00000000000 --- a/assets/images/stories-editor/font-names/pt-sans.svg +++ /dev/null @@ -1 +0,0 @@ -PT Sans diff --git a/assets/images/stories-editor/font-names/pt-serif.svg b/assets/images/stories-editor/font-names/pt-serif.svg deleted file mode 100644 index afbeec6702d..00000000000 --- a/assets/images/stories-editor/font-names/pt-serif.svg +++ /dev/null @@ -1 +0,0 @@ -PT Serif diff --git a/assets/images/stories-editor/font-names/raleway.svg b/assets/images/stories-editor/font-names/raleway.svg deleted file mode 100644 index 5e989da7172..00000000000 --- a/assets/images/stories-editor/font-names/raleway.svg +++ /dev/null @@ -1 +0,0 @@ -Raleway diff --git a/assets/images/stories-editor/font-names/roboto-condensed.svg b/assets/images/stories-editor/font-names/roboto-condensed.svg deleted file mode 100644 index 16c461ee22a..00000000000 --- a/assets/images/stories-editor/font-names/roboto-condensed.svg +++ /dev/null @@ -1 +0,0 @@ -Roboto Condensed diff --git a/assets/images/stories-editor/font-names/roboto-slab.svg b/assets/images/stories-editor/font-names/roboto-slab.svg deleted file mode 100644 index a65e3ef07e9..00000000000 --- a/assets/images/stories-editor/font-names/roboto-slab.svg +++ /dev/null @@ -1 +0,0 @@ -Roboto Slab diff --git a/assets/images/stories-editor/font-names/roboto.svg b/assets/images/stories-editor/font-names/roboto.svg deleted file mode 100644 index c57e819d05d..00000000000 --- a/assets/images/stories-editor/font-names/roboto.svg +++ /dev/null @@ -1 +0,0 @@ -Roboto diff --git a/assets/images/stories-editor/font-names/slabo-27.svg b/assets/images/stories-editor/font-names/slabo-27.svg deleted file mode 100644 index 27a2fbe1cae..00000000000 --- a/assets/images/stories-editor/font-names/slabo-27.svg +++ /dev/null @@ -1 +0,0 @@ -Slabo 27px diff --git a/assets/images/stories-editor/font-names/source-sans-pro.svg b/assets/images/stories-editor/font-names/source-sans-pro.svg deleted file mode 100644 index 3a6d70cd9e1..00000000000 --- a/assets/images/stories-editor/font-names/source-sans-pro.svg +++ /dev/null @@ -1 +0,0 @@ -Source Sans Pro diff --git a/assets/images/stories-editor/font-names/ubuntu.svg b/assets/images/stories-editor/font-names/ubuntu.svg deleted file mode 100644 index ef3f2fe7a54..00000000000 --- a/assets/images/stories-editor/font-names/ubuntu.svg +++ /dev/null @@ -1 +0,0 @@ -Ubuntu diff --git a/assets/src/stories-editor/constants.js b/assets/src/stories-editor/constants.js index 65b799e8e89..b20870e08cd 100644 --- a/assets/src/stories-editor/constants.js +++ b/assets/src/stories-editor/constants.js @@ -3,30 +3,6 @@ */ import { __ } from '@wordpress/i18n'; -/** - * Internal dependencies - */ -import Arimo from '../../images/stories-editor/font-names/arimo.svg'; -import Lato from '../../images/stories-editor/font-names/lato.svg'; -import Lora from '../../images/stories-editor/font-names/lora.svg'; -import Merriweather from '../../images/stories-editor/font-names/merriweather.svg'; -import Montserrat from '../../images/stories-editor/font-names/montserrat.svg'; -import NotoSans from '../../images/stories-editor/font-names/noto-sans.svg'; -import OpenSans from '../../images/stories-editor/font-names/open-sans.svg'; -import OpenSansCondensed from '../../images/stories-editor/font-names/open-sans-condensed.svg'; -import Oswald from '../../images/stories-editor/font-names/oswald.svg'; -import PlayfairDisplay from '../../images/stories-editor/font-names/playfair-display.svg'; -import PtSans from '../../images/stories-editor/font-names/pt-sans.svg'; -import PtSansNarrow from '../../images/stories-editor/font-names/pt-sans-narrow.svg'; -import PtSerif from '../../images/stories-editor/font-names/pt-serif.svg'; -import Raleway from '../../images/stories-editor/font-names/raleway.svg'; -import Roboto from '../../images/stories-editor/font-names/roboto.svg'; -import RobotoCondensed from '../../images/stories-editor/font-names/roboto-condensed.svg'; -import RobotoSlab from '../../images/stories-editor/font-names/roboto-slab.svg'; -import Slabo27 from '../../images/stories-editor/font-names/slabo-27.svg'; -import SourceSansPro from '../../images/stories-editor/font-names/source-sans-pro.svg'; -import Ubuntu from '../../images/stories-editor/font-names/ubuntu.svg'; - export const STORY_PAGE_INNER_WIDTH = 328; export const STORY_PAGE_INNER_HEIGHT = 553; @@ -219,29 +195,6 @@ export const AMP_ANIMATION_TYPE_OPTIONS = [ }, ]; -export const AMP_STORY_FONT_IMAGES = { - Arimo, - Lato, - Lora, - Merriweather, - Montserrat, - 'Noto Sans': NotoSans, - 'Open Sans': OpenSans, - 'Open Sans Condensed': OpenSansCondensed, - Oswald, - 'Playfair Display': PlayfairDisplay, - 'PT Sans': PtSans, - 'PT Sans Narrow': PtSansNarrow, - 'PT Serif': PtSerif, - Raleway, - Roboto, - 'Roboto Condensed': RobotoCondensed, - 'Roboto Slab': RobotoSlab, - 'Slabo 27px': Slabo27, - 'Source Sans Pro': SourceSansPro, - Ubuntu, -}; - export const REVERSE_WIDTH_CALCULATIONS = [ 'left', 'bottomLeft',