Skip to content

Commit 7baf5b4

Browse files
committed
remove unused fn
1 parent fc31c31 commit 7baf5b4

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

stac_fastapi/core/stac_fastapi/core/utilities.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -94,33 +94,6 @@ def get_bool_env(name: str, default: Union[bool, str] = False) -> bool:
9494
return default_str in true_values
9595

9696

97-
def resolve_refresh(refresh: str) -> str:
98-
"""
99-
Resolve the `refresh` parameter from kwargs or the environment variable.
100-
101-
Args:
102-
refresh (str): The `refresh` parameter value.
103-
104-
Returns:
105-
str: The resolved value of the `refresh` parameter, which can be "true", "false", or "wait_for".
106-
107-
Raises:
108-
ValueError: If the `refresh` value is not one of "true", "false", or "wait_for".
109-
"""
110-
logger = logging.getLogger(__name__)
111-
112-
# Normalize and validate the `refresh` value
113-
refresh = refresh.lower()
114-
if refresh not in {"true", "false", "wait_for"}:
115-
raise ValueError(
116-
"Invalid value for `refresh`. Must be 'true', 'false', or 'wait_for'."
117-
)
118-
119-
# Log the resolved value
120-
logger.info(f"`refresh` parameter resolved to: {refresh}")
121-
return refresh
122-
123-
12497
def bbox2polygon(b0: float, b1: float, b2: float, b3: float) -> List[List[List[float]]]:
12598
"""Transform a bounding box represented by its four coordinates `b0`, `b1`, `b2`, and `b3` into a polygon.
12699

0 commit comments

Comments
 (0)