Fossil SCM

Remove an unused global variable from the path_shortest() logic.

drh 2017-08-24 19:30 trunk
Commit 084690e77201c1d38a300fc9845a2133e797e60e0ab0e603c45c2dadafaede4e
1 file changed -1
-1
--- src/path.c
+++ src/path.c
@@ -45,11 +45,10 @@
4545
PathNode *pCurrent; /* Current generation of nodes */
4646
PathNode *pAll; /* All nodes */
4747
Bag seen; /* Nodes seen before */
4848
int nStep; /* Number of steps from first to last */
4949
PathNode *pStart; /* Earliest node */
50
- PathNode *pPivot; /* Common ancestor of pStart and pEnd */
5150
PathNode *pEnd; /* Most recent */
5251
} path;
5352
5453
/*
5554
** Return the first (last) element of the computed path.
5655
--- src/path.c
+++ src/path.c
@@ -45,11 +45,10 @@
45 PathNode *pCurrent; /* Current generation of nodes */
46 PathNode *pAll; /* All nodes */
47 Bag seen; /* Nodes seen before */
48 int nStep; /* Number of steps from first to last */
49 PathNode *pStart; /* Earliest node */
50 PathNode *pPivot; /* Common ancestor of pStart and pEnd */
51 PathNode *pEnd; /* Most recent */
52 } path;
53
54 /*
55 ** Return the first (last) element of the computed path.
56
--- src/path.c
+++ src/path.c
@@ -45,11 +45,10 @@
45 PathNode *pCurrent; /* Current generation of nodes */
46 PathNode *pAll; /* All nodes */
47 Bag seen; /* Nodes seen before */
48 int nStep; /* Number of steps from first to last */
49 PathNode *pStart; /* Earliest node */
 
50 PathNode *pEnd; /* Most recent */
51 } path;
52
53 /*
54 ** Return the first (last) element of the computed path.
55

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button