From b4230441803f85ed3d1a1059e9d0b257484e040e Mon Sep 17 00:00:00 2001 From: nguyenyou Date: Mon, 16 Dec 2024 15:01:56 +0700 Subject: [PATCH 1/2] remove unused code --- packages/scalawind/src/generate/templates/swMacro.hbs | 2 +- packages/scalawind/tests/cases/basic/expected.txt | 2 +- packages/scalawind/tests/cases/daisy/expected.txt | 2 +- packages/scalawind/tests/cases/full/expected.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/scalawind/src/generate/templates/swMacro.hbs b/packages/scalawind/src/generate/templates/swMacro.hbs index 42b0ff2..a653fc5 100644 --- a/packages/scalawind/src/generate/templates/swMacro.hbs +++ b/packages/scalawind/src/generate/templates/swMacro.hbs @@ -8,7 +8,7 @@ implicit inline def sw(inline tailwind: Tailwind): String = def methodNameToTailwindClass(rawName: String) = { val name = if (rawName.startsWith("_") && rawName.charAt(1).isDigit) rawName.stripPrefix("_") else rawName - name.replace("_", "-").replace("per", "/").replace("dot", ".") + name.replace("_", "-") } def swImpl(tailwindExpr: Expr[Tailwind])(using Quotes): Expr[String] = { diff --git a/packages/scalawind/tests/cases/basic/expected.txt b/packages/scalawind/tests/cases/basic/expected.txt index dc51b79..c9d029e 100644 --- a/packages/scalawind/tests/cases/basic/expected.txt +++ b/packages/scalawind/tests/cases/basic/expected.txt @@ -33,7 +33,7 @@ implicit inline def sw(inline tailwind: Tailwind): String = def methodNameToTailwindClass(rawName: String) = { val name = if (rawName.startsWith("_") && rawName.charAt(1).isDigit) rawName.stripPrefix("_") else rawName - name.replace("_", "-").replace("per", "/").replace("dot", ".") + name.replace("_", "-") } def swImpl(tailwindExpr: Expr[Tailwind])(using Quotes): Expr[String] = { diff --git a/packages/scalawind/tests/cases/daisy/expected.txt b/packages/scalawind/tests/cases/daisy/expected.txt index b188f7a..3c4cc4a 100644 --- a/packages/scalawind/tests/cases/daisy/expected.txt +++ b/packages/scalawind/tests/cases/daisy/expected.txt @@ -23,7 +23,7 @@ implicit inline def sw(inline tailwind: Tailwind): String = def methodNameToTailwindClass(rawName: String) = { val name = if (rawName.startsWith("_") && rawName.charAt(1).isDigit) rawName.stripPrefix("_") else rawName - name.replace("_", "-").replace("per", "/").replace("dot", ".") + name.replace("_", "-") } def swImpl(tailwindExpr: Expr[Tailwind])(using Quotes): Expr[String] = { diff --git a/packages/scalawind/tests/cases/full/expected.txt b/packages/scalawind/tests/cases/full/expected.txt index a077562..584f323 100644 --- a/packages/scalawind/tests/cases/full/expected.txt +++ b/packages/scalawind/tests/cases/full/expected.txt @@ -23,7 +23,7 @@ implicit inline def sw(inline tailwind: Tailwind): String = def methodNameToTailwindClass(rawName: String) = { val name = if (rawName.startsWith("_") && rawName.charAt(1).isDigit) rawName.stripPrefix("_") else rawName - name.replace("_", "-").replace("per", "/").replace("dot", ".") + name.replace("_", "-") } def swImpl(tailwindExpr: Expr[Tailwind])(using Quotes): Expr[String] = { From 0f2ec989ebf2359a5e7295473ddfdd1887ab2f8e Mon Sep 17 00:00:00 2001 From: nguyenyou Date: Mon, 16 Dec 2024 15:02:58 +0700 Subject: [PATCH 2/2] add changeset --- .changeset/shaggy-mice-mate.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/shaggy-mice-mate.md diff --git a/.changeset/shaggy-mice-mate.md b/.changeset/shaggy-mice-mate.md new file mode 100644 index 0000000..6d2edbb --- /dev/null +++ b/.changeset/shaggy-mice-mate.md @@ -0,0 +1,5 @@ +--- +"scalawind": patch +--- + +remove unused code