Skip to content

Commit

Permalink
removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Dec 4, 2023
1 parent 1cf1f68 commit 4aab6d5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ object StringUtils {
return toString().replace("-", "")
}

private fun String.removeAtBeginning(text: String): String =
if (this.startsWith(text)) substring(text.length) else this

// TODO find better name for this method
inline fun <T> Pattern.matchMatcher(text: String, consumer: Matcher.() -> T) =
matcher(text).let { if (it.matches()) consumer(it) else null }
Expand Down

0 comments on commit 4aab6d5

Please sign in to comment.