From fcc07826f7bb65b9df73b4b9931dd2d5fb46ded3 Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Thu, 22 Aug 2024 17:21:14 +0200 Subject: [PATCH] Remove unused resolveNamespace method (#14235) Removing a leftover API from the recent changes in https://github.com/tailwindlabs/tailwindcss/pull/14177 --- packages/tailwindcss/src/theme.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/packages/tailwindcss/src/theme.ts b/packages/tailwindcss/src/theme.ts index a6fd9d088..da90aff4b 100644 --- a/packages/tailwindcss/src/theme.ts +++ b/packages/tailwindcss/src/theme.ts @@ -148,25 +148,6 @@ export class Theme { return values } - - resolveNamespace(namespace: string) { - let values = new Map() - let prefix = `${namespace}-` - - for (let [key, value] of this.values) { - if (key === namespace) { - values.set(null, value.isInline ? value.value : this.#var(key)!) - } else if (key.startsWith(`${prefix}-`)) { - // Preserve `--` prefix for sub-variables - // e.g. `--font-size-sm--line-height` - values.set(key.slice(namespace.length), value.value) - } else if (key.startsWith(prefix)) { - values.set(key.slice(prefix.length), value.isInline ? value.value : this.#var(key)!) - } - } - - return values - } } export type ThemeKey =