From 78d024f2eef47adb89a93e41b48103788ecf766b Mon Sep 17 00:00:00 2001 From: Genar Trias Ortiz Date: Wed, 18 Sep 2024 17:09:53 +0200 Subject: [PATCH] Remove ad-hoc method which don't belong to RR (#8) --- lib/public/registry.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/public/registry.rb b/lib/public/registry.rb index cebaffb..7e62494 100644 --- a/lib/public/registry.rb +++ b/lib/public/registry.rb @@ -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 }