chore: remove dead makeNotImplementedPredicate helper

All 27 BUILTIN_PREDICATES now have real evaluators. The
makeNotImplementedPredicate factory and its IMH_FEATURE_NOT_YET_IMPLEMENTED
path were the last remaining NYI scaffolding — no caller existed for it.
IMH_FEATURE_NOT_YET_IMPLEMENTED diagnostic code kept in the taxonomy
as a future fallback, but no evaluator produces it.
This commit is contained in:
John Dvorak
2026-05-21 20:15:40 -07:00
parent b4ae8e9134
commit 654becabc6
-26
View File
@@ -988,32 +988,6 @@ export const withinPredicate: PredicateEvaluator = {
},
};
// ---------------------------------------------------------------------------
// Not-Yet-Implemented Predicates
// ---------------------------------------------------------------------------
function makeNotImplementedPredicate(name: string): PredicateEvaluator {
return {
descriptor: {
name,
arity: 2,
domains: ['element', 'element'],
requiredFacts: ['subject.primaryBox', 'reference.primaryBox'],
},
evaluateTuple(_world, tuple) {
const subjectId = tuple[0];
const referenceId = tuple[1];
return makePredicateResult('false', {}, [subjectId, referenceId].filter((id): id is number => id !== undefined), [
{
code: 'IMH_FEATURE_NOT_YET_IMPLEMENTED',
severity: 'error',
message: `Predicate "${name}" is not yet implemented.`,
},
]);
},
};
}
export const separatedFromPredicate: PredicateEvaluator = {
descriptor: BUILTIN_PREDICATES[18]!,
evaluateTuple(world, tuple, options) {