Skip to content

Commit

Permalink
Django: remove unused code (#1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis authored Jan 5, 2024
1 parent 80201db commit cfa21f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
8 changes: 1 addition & 7 deletions pygeoapi/django_/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,7 @@ def apply_slash_rule(url: str):
apply_slash_rule('stac/'),
views.stac_catalog_root,
name='stac-catalog-root'
),
path('stac/<str:path>', views.stac_catalog_path, name='stac-catalog-path'),
path(
apply_slash_rule('stac/search/'),
views.stac_catalog_search,
name='stac-catalog-search'
),
)
]

url_route_prefix = settings.API_RULES.get_url_prefix('django')
Expand Down
4 changes: 0 additions & 4 deletions pygeoapi/django_/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,10 +484,6 @@ def stac_catalog_path(request: HttpRequest, path: str) -> HttpResponse:
return response


def stac_catalog_search(request: HttpRequest) -> HttpResponse:
pass


def admin_config(request: HttpRequest) -> HttpResponse:
"""
Admin landing page endpoint
Expand Down

0 comments on commit cfa21f6

Please sign in to comment.