Skip to content

Commit bbfb903

Browse files
dpepclaude
andcommitted
Remove unused private API action methods
path_parts lost its last caller in 1602d2e, when feature names began coming from the route; disallow_unregistered_groups? in fa80cc3, when its caller switched to `return if allow_unregistered_groups?`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 1d49644 commit bbfb903

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

‎lib/flipper/api/action.rb‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,6 @@ def request_method_name
289289
end
290290
end
291291

292-
# Private: split request path by "/"
293-
# Example: "features/feature_name" => ['features', 'feature_name']
294-
def path_parts
295-
@request.path.split('/')
296-
end
297-
298292
def valid_request_method?
299293
VALID_REQUEST_METHOD_NAMES.include?(request_method_name)
300294
end

‎lib/flipper/api/v1/actions/groups_gate.rb‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ def allow_unregistered_groups?
4444
allow_unregistered_groups && allow_unregistered_groups == 'true'
4545
end
4646

47-
def disallow_unregistered_groups?
48-
!allow_unregistered_groups?
49-
end
50-
5147
def group_name
5248
@group_name ||= string_param('name')
5349
end

0 commit comments

Comments
 (0)