Skip to content

Commit

Permalink
refactor(utils): drop unused functions
Browse files Browse the repository at this point in the history
The default_settings and the list_links_to_edit functions are not used
anywhere in the apis-core-rdf codebase.
  • Loading branch information
b1rger committed Oct 23, 2024
1 parent 65225d0 commit 71502ba
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions apis_core/utils/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# SPDX-License-Identifier: MIT

import logging
from pathlib import Path

import tomllib
from django.conf import settings
Expand All @@ -11,11 +10,6 @@
logger = logging.getLogger(__name__)


def default_settings() -> Path:
curpath = Path(__file__).parent
return curpath.parent / "default_settings"


def get_entity_settings_by_modelname(entity: str = None) -> dict:
"""
return the settings for a specific entity or the dict for all entities
Expand All @@ -28,10 +22,6 @@ def get_entity_settings_by_modelname(entity: str = None) -> dict:
return apis_entities


def list_links_to_edit() -> bool:
return getattr(settings, "APIS_LIST_LINKS_TO_EDIT", False)


def dict_from_toml_directory(directory: str) -> dict:
configs = {}
pathlists = [path.glob("**/*.toml") for path in get_app_template_dirs(directory)]
Expand Down

0 comments on commit 71502ba

Please sign in to comment.