Skip to content

Commit 967cd21

Browse files
committed
style: remove unused imports/args
1 parent a198293 commit 967cd21

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

playground/providers/custom.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
// Do some stuff
88
resolvableFonts.add('SomeFontFromCustomProvider')
99
},
10-
async resolveFontFaces (fontFamily, _defaults) {
10+
async resolveFontFaces (fontFamily) {
1111
if (!resolvableFonts.has(fontFamily)) { return }
1212
return {
1313
fonts: {

src/assets.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import fsp from 'node:fs/promises'
2-
import { addDevServerHandler, useNitro, useNuxt } from '@nuxt/kit'
2+
import { addDevServerHandler, useNuxt } from '@nuxt/kit'
33
import { eventHandler, createError, lazyEventHandler } from 'h3'
44
import { fetch } from 'ofetch'
55
import chalk from 'chalk'
@@ -50,7 +50,6 @@ export function setupPublicAssetStrategy (options: ModuleOptions['assets'] = {})
5050
addDevServerHandler({
5151
route: assetsBaseURL,
5252
handler: lazyEventHandler(async () => {
53-
const nitro = useNitro()
5453
return eventHandler(async event => {
5554
const filename = event.path.slice(1)
5655
const url = renderedFontURLs.get(event.path.slice(1))

src/css/render.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { hasProtocol } from 'ufo'
2-
import type { FontSource, NormalizedFontFaceData, RemoteFontSource } from '../types'
2+
import type { FontSource, NormalizedFontFaceData } from '../types'
33
import { extname } from 'pathe'
4-
import { getMetricsForFamily, readMetrics, generateFontFace as generateFallbackFontFace } from 'fontaine'
4+
import { getMetricsForFamily, generateFontFace as generateFallbackFontFace } from 'fontaine'
55

66
export function generateFontFace (family: string, font: NormalizedFontFaceData) {
77
return [

0 commit comments

Comments
 (0)