summaryrefslogtreecommitdiff
path: root/src/dynamic.c
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2026-10-05 22:20:58 -0700
committerScott Gasch <[email protected]>2026-10-05 22:20:58 -0700
commitc03e7de56b316f83592ec39ce098a204628009cf (patch)
tree2b71cb13ad2c15b4cd995ae8349ab6bfe8e9cf6c /src/dynamic.c
parent36b6628fc7a7c481b3d00c3141a800d869c63dca (diff)
Remove dead ValueOfMaterialInTroubleAfterNull
Declared in chess.h, defined in dynamic.c, documented as the nullmove-pruning safety-net sibling of ValueOfMaterialInTroubleDespiteMove -- but it had zero call sites anywhere in the tree, only a comment in search.c describing what it was conceptually meant to catch. Nothing ever wired it in. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Diffstat (limited to 'src/dynamic.c')
-rw-r--r--src/dynamic.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/dynamic.c b/src/dynamic.c
index 2451fa6..b0bad91 100644
--- a/src/dynamic.c
+++ b/src/dynamic.c
@@ -665,45 +665,6 @@ Return value:
}
-ULONG
-ValueOfMaterialInTroubleAfterNull(SEARCHER_THREAD_CONTEXT *ctx, ULONG uSide)
-/**
-
-Routine description:
-
- Nullmove-pruning safety net: same as ValueOfMaterialInTroubleDespiteMove
- but with a looser threshold (any valid en prise hint counts, not
- just two) since this is guarding a cheaper, more speculative prune.
-
-Parameters:
-
- SEARCHER_THREAD_CONTEXT *ctx,
- ULONG uSide
-
-Return value:
-
- ULONG : material value in trouble, or 0
-
-**/
-{
- ULONG uPly = ctx->uPly;
- ULONG u = 0;
- COOR c;
-
- if (_EnpriseSlotValid(ctx, 0, uSide))
- {
- c = ctx->cEnprise[uPly][0];
- u = PIECE_VALUE(ctx->sPosition.rgSquare[c].pPiece);
- }
- if (_TrappedSlotValid(ctx, uSide))
- {
- c = ctx->cTrapped[uPly];
- u = MAXU(u, PIECE_VALUE(ctx->sPosition.rgSquare[c].pPiece));
- }
- return u;
-}
-
-
static void
_IncrementMoveHistoryCounter(MOVE mv,
ULONG uDepth)