Skip to content

Commit

Permalink
style: remove unused imports/args
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Mar 7, 2024
1 parent a198293 commit 967cd21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion playground/providers/custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
// Do some stuff
resolvableFonts.add('SomeFontFromCustomProvider')
},
async resolveFontFaces (fontFamily, _defaults) {
async resolveFontFaces (fontFamily) {
if (!resolvableFonts.has(fontFamily)) { return }
return {
fonts: {
Expand Down
3 changes: 1 addition & 2 deletions src/assets.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fsp from 'node:fs/promises'
import { addDevServerHandler, useNitro, useNuxt } from '@nuxt/kit'
import { addDevServerHandler, useNuxt } from '@nuxt/kit'
import { eventHandler, createError, lazyEventHandler } from 'h3'
import { fetch } from 'ofetch'
import chalk from 'chalk'
Expand Down Expand Up @@ -50,7 +50,6 @@ export function setupPublicAssetStrategy (options: ModuleOptions['assets'] = {})
addDevServerHandler({
route: assetsBaseURL,
handler: lazyEventHandler(async () => {
const nitro = useNitro()
return eventHandler(async event => {
const filename = event.path.slice(1)
const url = renderedFontURLs.get(event.path.slice(1))
Expand Down
4 changes: 2 additions & 2 deletions src/css/render.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { hasProtocol } from 'ufo'
import type { FontSource, NormalizedFontFaceData, RemoteFontSource } from '../types'
import type { FontSource, NormalizedFontFaceData } from '../types'
import { extname } from 'pathe'
import { getMetricsForFamily, readMetrics, generateFontFace as generateFallbackFontFace } from 'fontaine'
import { getMetricsForFamily, generateFontFace as generateFallbackFontFace } from 'fontaine'

export function generateFontFace (family: string, font: NormalizedFontFaceData) {
return [
Expand Down

0 comments on commit 967cd21

Please sign in to comment.