Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Oct 1, 2024
1 parent 3bb80f4 commit cbe7a56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
5 changes: 1 addition & 4 deletions stac_fastapi/pgstac/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@
extensions=extensions + [collection_search_extension]
if collection_search_extension
else extensions,
client=CoreCrudClient(
post_request_model=post_request_model, # type: ignore
collections_get_request_model=collections_get_request_model, # type: ignore
),
client=CoreCrudClient(post_request_model=post_request_model), # type: ignore
response_class=ORJSONResponse,
items_get_request_model=items_get_request_model,
search_get_request_model=get_request_model,
Expand Down
4 changes: 1 addition & 3 deletions stac_fastapi/pgstac/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from pygeofilter.backends.cql2_json import to_cql2
from pygeofilter.parsers.cql2_text import parse as parse_cql2_text
from pypgstac.hydration import hydrate
from stac_fastapi.api.models import APIRequest, EmptyRequest, JSONResponse
from stac_fastapi.api.models import JSONResponse
from stac_fastapi.types.core import AsyncBaseCoreClient, Relations
from stac_fastapi.types.errors import InvalidQueryParameter, NotFoundError
from stac_fastapi.types.requests import get_base_url
Expand All @@ -39,8 +39,6 @@
class CoreCrudClient(AsyncBaseCoreClient):
"""Client for core endpoints defined by stac."""

collections_get_request_model: APIRequest = attr.ib(default=EmptyRequest)

async def all_collections( # noqa: C901
self,
request: Request,
Expand Down
5 changes: 1 addition & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,7 @@ def api_client(request, database):
api = StacApi(
settings=api_settings,
extensions=extensions + [collection_search_extension],
client=CoreCrudClient(
post_request_model=search_post_request_model,
collections_get_request_model=collections_get_request_model,
),
client=CoreCrudClient(post_request_model=search_post_request_model),
items_get_request_model=items_get_request_model,
search_get_request_model=search_get_request_model,
search_post_request_model=search_post_request_model,
Expand Down

0 comments on commit cbe7a56

Please sign in to comment.