Skip to content
Prev Previous commit
Next Next commit
Remove now unused options
  • Loading branch information
jnunemaker committed Jun 16, 2020
commit ca2cd787937e28acc40f2061c04da49e1d36f8e7
10 changes: 1 addition & 9 deletions lib/flipper/ui/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
module Flipper
module UI
class Configuration
attr_reader :actors,
:delete,
:groups,
:percentage_of_actors,
:percentage_of_time
attr_reader :delete

attr_accessor :banner_text,
:banner_class
Expand Down Expand Up @@ -54,10 +50,6 @@ class Configuration
DEFAULT_DESCRIPTIONS_SOURCE = ->(_keys) { {} }

def initialize
@actors = Option.new("Actors", "Enable actors using the form above.")
@groups = Option.new("Groups", "Enable groups using the form above.")
@percentage_of_actors = Option.new("Percentage of Actors", "Percentage of actors functions independently of percentage of time. If you enable 50% of Actors and 25% of Time then the feature will always be enabled for 50% of users and occasionally enabled 25% of the time for everyone.")
@percentage_of_time = Option.new("Percentage of Time", "Percentage of actors functions independently of percentage of time. If you enable 50% of Actors and 25% of Time then the feature will always be enabled for 50% of users and occasionally enabled 25% of the time for everyone.")
@delete = Option.new("Danger Zone", "Deleting a feature removes it from the list of features and disables it for everyone.")
@banner_text = nil
@banner_class = 'danger'
Expand Down