Skip to content

Commit

Permalink
Merge pull request #167 from nguyenyou/feat/remove-unused-code
Browse files Browse the repository at this point in the history
remove unused code
  • Loading branch information
nguyenyou authored Dec 16, 2024
2 parents eb3fb9e + 0f2ec98 commit bba0ade
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/shaggy-mice-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"scalawind": patch
---

remove unused code
2 changes: 1 addition & 1 deletion packages/scalawind/src/generate/templates/swMacro.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {
Expand Down
2 changes: 1 addition & 1 deletion packages/scalawind/tests/cases/basic/expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {
Expand Down
2 changes: 1 addition & 1 deletion packages/scalawind/tests/cases/daisy/expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {
Expand Down
2 changes: 1 addition & 1 deletion packages/scalawind/tests/cases/full/expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {
Expand Down

0 comments on commit bba0ade

Please sign in to comment.