Skip to content

Commit

Permalink
Remove ad-hoc method which don't belong to RR (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrias authored Sep 18, 2024
1 parent 18a6554 commit 78d024f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/public/registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,6 @@ def fetch_with_capabilities(*capabilities)
fetch_all.values.select { |resource| capabilities_set <= resource.capabilities.keys.to_set }
end

sig { returns(T::Array[Resource]) }
def fetch_with_public_rest_capability
fetch_with_capabilities(ResourceRegistry::Capabilities::Rest).select do |res|
T.must(res.capabilities[:rest]).serialize['is_public']
end
end

sig { params(repository: T::Class[ResourceRegistry::Repositories::Base[T.untyped]]).returns(T.nilable(Resource)) }
def find_by_repository(repository)
fetch_all.values.find { |resource| resource.repository == repository }
Expand Down

0 comments on commit 78d024f

Please sign in to comment.