Skip to content

Commit 966d0ad

Browse files
jnunemakerclaude
andcommitted
Remove expression duration
The Duration expression is unused and adds unnecessary complexity to the expression system. Removes the Duration class, its DSL method, and associated tests. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent c387c07 commit 966d0ad

3 files changed

Lines changed: 0 additions & 75 deletions

File tree

lib/flipper.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ def time(value)
108108
Expression.build({ Time: value })
109109
end
110110

111-
def duration(scalar, unit = 'second')
112-
Expression.build({ Duration: [scalar, unit] })
113-
end
114-
115111
def feature_enabled(name)
116112
Expression.build({ FeatureEnabled: name })
117113
end

lib/flipper/expressions/duration.rb

Lines changed: 0 additions & 28 deletions
This file was deleted.

spec/flipper/expressions/duration_spec.rb

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)