Skip to content

Commit

Permalink
MTDSA-9161 Removed outdated terminology (#60)
Browse files Browse the repository at this point in the history
* MTDSA-9161 Removed outdated terminology

* Removed bsp file
  • Loading branch information
HarryBaxter authored Jun 14, 2021
1 parent 757b940 commit ca9c7bb
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions app/config/FeatureSwitch.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,6 @@ case class FeatureSwitch(value: Option[Configuration]) {

private val versionRegex = """(\d)\.\d""".r

def isWhiteListingEnabled: Boolean = {
value match {
case Some(config) => config.getOptional[Boolean]("white-list.enabled").getOrElse(false)
case None => false
}
}

def whiteListedApplicationIds: Seq[String] = {
value match {
case Some(config) =>
config
.getOptional[Seq[String]]("white-list.applicationIds")
.getOrElse(throw new RuntimeException(s"feature-switch.white-list.applicationIds is not configured"))
case None => Seq()
}
}

def isVersionEnabled(version: String): Boolean = {
val versionNoIfPresent: Option[String] =
version match {
Expand Down

0 comments on commit ca9c7bb

Please sign in to comment.