From 5abe2288227deec35324613a264884dc25be0694 Mon Sep 17 00:00:00 2001 From: gitRasheed Date: Sat, 4 Jul 2026 19:39:52 +0100 Subject: [PATCH] Remove the unused nnscore() accessor native_fn() has been the only dispatch seam since the native-dispatch cleanup; nnscore() had no remaining callers anywhere in the repo. The 'is the native backend loaded' diagnostic is still available as native_fn("lpm") is not None. The nnscore CMake target name for the NNS-core C++ library is unrelated and unchanged. --- src/nns/_native.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/nns/_native.py b/src/nns/_native.py index 7c3eb41b..1f716f75 100644 --- a/src/nns/_native.py +++ b/src/nns/_native.py @@ -2,7 +2,7 @@ import importlib import importlib.util -from typing import Any, cast +from typing import Any _NNSCORE_SPEC = importlib.util.find_spec("nns._nnscore") @@ -12,11 +12,6 @@ _nnscore = None -def nnscore() -> Any | None: - """Return the optional private NNS-core extension module when available.""" - return cast(Any | None, _nnscore) - - def native_fn(name: str) -> Any | None: """Return a callable from the NNS-core extension, or None when unavailable.""" if _nnscore is None: