Skip to content

Commit

Permalink
Remove more unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Apr 18, 2021
1 parent c7b4fad commit 98e93cf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
15 changes: 0 additions & 15 deletions lib/getGoogleIdForFontProps.js

This file was deleted.

10 changes: 0 additions & 10 deletions lib/subsetFonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ const fontSnapper = require('font-snapper');
const fontverter = require('fontverter');
const subsetFont = require('subset-font');

const AssetGraph = require('assetgraph');
const compileQuery = require('assetgraph/lib/compileQuery');

const HeadlessBrowser = require('./HeadlessBrowser');
const gatherStylesheetsWithPredicates = require('./gatherStylesheetsWithPredicates');
const getGoogleIdForFontProps = require('./getGoogleIdForFontProps');
const findCustomPropertyDefinitions = require('./findCustomPropertyDefinitions');
const extractReferencedCustomPropertyNames = require('./extractReferencedCustomPropertyNames');
const stripLocalTokens = require('./stripLocalTokens');
Expand Down Expand Up @@ -57,14 +55,6 @@ function cssQuoteIfNecessary(value) {
}
}

function getGoogleFontSubsetCssUrl(fontProps, text) {
const googleFontId = getGoogleIdForFontProps(fontProps);

return `https://fonts.googleapis.com/css?family=${googleFontId}&text=${encodeURIComponent(
text
)}`;
}

function getPreferredFontUrl(cssFontFaceSrcRelations = []) {
const formatOrder = ['woff2', 'woff', 'truetype', 'opentype'];

Expand Down

0 comments on commit 98e93cf

Please sign in to comment.