Skip to content
Permalink
Browse files

remove unused fum #2

  • Loading branch information...
Danil42Russia committed Apr 24, 2019
1 parent 48a6096 commit 8c08c81712143e7b2c9fbe1ee099d307246f28ed
Showing with 0 additions and 12 deletions.
  1. +0 −12 src/ru/danil42russia/aaa/service/CmdService.kt
@@ -4,8 +4,6 @@ import org.apache.commons.cli.*
import ru.danil42russia.aaa.domain.Cmd
import java.time.LocalDate
import java.time.format.DateTimeFormatter
import java.util.regex.Matcher
import java.util.regex.Pattern

class CmdService {
private val options = Options()
@@ -83,14 +81,4 @@ class CmdService {
inline fun <reified T : Enum<T>> checkRole(role: String): Boolean {
return enumValues<T>().any { it.name == role }
}

fun checkNode(res: String): Boolean {
val nodeRegex = Pattern.compile(
"[a-zA-Z]{1,10}",
Pattern.CASE_INSENSITIVE
)

val matcher: Matcher = nodeRegex.matcher(res)
return matcher.find()
}
}

0 comments on commit 8c08c81

Please sign in to comment.
You can’t perform that action at this time.