@@ -9836,7 +9836,7 @@ bool CAdapt_ItDoc::ReconstituteAfterFilteringChange(CAdapt_ItView* pView,
9836
9836
// to their assignments below.
9837
9837
9838
9838
SPList::Node* saveNextPos = NULL;
9839
- SPList::Node* prevPos = NULL;
9839
+ // SPList::Node* prevPos = NULL;
9840
9840
SPList::Node* follPos = NULL; // whm 26Nov2023 added but unused.
9841
9841
follPos = follPos; // avoid gcc set but not used warning
9842
9842
@@ -9848,7 +9848,7 @@ bool CAdapt_ItDoc::ReconstituteAfterFilteringChange(CAdapt_ItView* pView,
9848
9848
// test data the unfiltering of an \x...\x* span was skipped because it was stored
9849
9849
// on the first node/pSrcPhrase. Therefore I'm removing the bIsFirstNode block below
9850
9850
// and the bIsFirsNode flag.
9851
- prevPos = saveNextPos; // RHS was set before moving to next Node ptr, so is 'previous' still
9851
+ // prevPos = saveNextPos; // RHS was set before moving to next Node ptr, so is 'previous' still
9852
9852
saveNextPos = pos_pList; // now we can update it to current Node
9853
9853
SPList::Node* insertPos = NULL;
9854
9854
CSourcePhrase* pInsertSP = NULL;
@@ -9947,8 +9947,8 @@ bool CAdapt_ItDoc::ReconstituteAfterFilteringChange(CAdapt_ItView* pView,
9947
9947
wxString nextWholeMkrInFilterBrackets; nextWholeMkrInFilterBrackets.Empty();
9948
9948
wxString previousWholeMkrInFilterBrackets; previousWholeMkrInFilterBrackets.Empty();
9949
9949
bool bThisMkrToBeUnfiltered;
9950
- bool bNextMkrToBeUnfiltered;
9951
- bool bPreviousMkrWasUnfiltered;
9950
+ // bool bNextMkrToBeUnfiltered;
9951
+ // bool bPreviousMkrWasUnfiltered;
9952
9952
bool bAnyPreviousMkrWasUnfiltered = FALSE;
9953
9953
filteredStrItemsWithBrackets = GetFilteredInfoSegments(theFilteredInfo);
9954
9954
int nTotFilterItems = (int)filteredStrItemsWithBrackets.GetCount();
@@ -9971,16 +9971,16 @@ bool CAdapt_ItDoc::ReconstituteAfterFilteringChange(CAdapt_ItView* pView,
9971
9971
bThisMkrToBeUnfiltered = TRUE;
9972
9972
else
9973
9973
bThisMkrToBeUnfiltered = FALSE;
9974
- int posNextFilteredMkr = nextWholeMkrInFilterBrackets.Find(augMkrWithInitialFilterBracket);
9975
- if (posNextFilteredMkr != wxNOT_FOUND)
9976
- bNextMkrToBeUnfiltered = TRUE;
9977
- else
9978
- bNextMkrToBeUnfiltered = FALSE;
9979
- int posPrevFilteredMkr = previousWholeMkrInFilterBrackets.Find(augMkrWithInitialFilterBracket);
9980
- if (posPrevFilteredMkr != wxNOT_FOUND)
9981
- bPreviousMkrWasUnfiltered = TRUE;
9982
- else
9983
- bPreviousMkrWasUnfiltered = FALSE;
9974
+ // int posNextFilteredMkr = nextWholeMkrInFilterBrackets.Find(augMkrWithInitialFilterBracket);
9975
+ // if (posNextFilteredMkr != wxNOT_FOUND)
9976
+ // bNextMkrToBeUnfiltered = TRUE;
9977
+ // else
9978
+ // bNextMkrToBeUnfiltered = FALSE;
9979
+ // int posPrevFilteredMkr = previousWholeMkrInFilterBrackets.Find(augMkrWithInitialFilterBracket);
9980
+ // if (posPrevFilteredMkr != wxNOT_FOUND)
9981
+ // bPreviousMkrWasUnfiltered = TRUE;
9982
+ // else
9983
+ // bPreviousMkrWasUnfiltered = FALSE;
9984
9984
if (!bThisMkrToBeUnfiltered)
9985
9985
{
9986
9986
// This marker was in m_filteredInfo, but NOT currently to be unfiltered, so it should be
@@ -10000,14 +10000,14 @@ bool CAdapt_ItDoc::ReconstituteAfterFilteringChange(CAdapt_ItView* pView,
10000
10000
{
10001
10001
// A previous marker was unfiltered, so scan backwards in the filterStatusOfProcessedMkrs
10002
10002
// array and locate the most recent marker item in there with a non-NULL value, if any.
10003
- bool bFound = FALSE;
10003
+ // bool bFound = FALSE;
10004
10004
int itemIndex = -1;
10005
10005
int startIndex = itemCt; // don't allow itemCt to change here!
10006
10006
for (int i = startIndex; i > 0; i--)
10007
10007
{
10008
10008
if (LastWordSrcPhrofUnfilteredMkrsArr.Item(i) != NULL)
10009
10009
{
10010
- bFound = TRUE;
10010
+ // bFound = TRUE;
10011
10011
itemIndex = i;
10012
10012
break; // Don't iterate back any further. We want the last SP that wasn't NULL
10013
10013
}
@@ -10276,12 +10276,12 @@ bool CAdapt_ItDoc::ReconstituteAfterFilteringChange(CAdapt_ItView* pView,
10276
10276
}
10277
10277
#endif
10278
10278
CSourcePhrase* pSP_SubList = NULL;
10279
- SPList::Node* pos_LastInSubList = pSublist->GetLast();
10280
- CSourcePhrase* pSP_LastInSubList = NULL;
10279
+ // SPList::Node* pos_LastInSubList = pSublist->GetLast();
10280
+ // CSourcePhrase* pSP_LastInSubList = NULL;
10281
10281
SPList::Node* pos_FirstInSubList = pSublist->GetFirst(); // used in a block below
10282
10282
CSourcePhrase* pSP_FirstInSubList = NULL;
10283
- if (pos_LastInSubList != NULL)
10284
- pSP_LastInSubList = pos_LastInSubList->GetData();
10283
+ // if (pos_LastInSubList != NULL)
10284
+ // pSP_LastInSubList = pos_LastInSubList->GetData();
10285
10285
if (pos_FirstInSubList != NULL)
10286
10286
pSP_FirstInSubList = pos_FirstInSubList->GetData();
10287
10287
pos_SubList = pSublist->GetFirst();
@@ -10740,12 +10740,12 @@ bool CAdapt_ItDoc::ReconstituteAfterFilteringChange(CAdapt_ItView* pView,
10740
10740
// whm 6Nov2023 provide a pointer to the previous source phrase. We'll use
10741
10741
// this to store filtered info from a previously unfiltered char attribute
10742
10742
// marker.
10743
- CSourcePhrase* pPrevSrcPhrase = NULL;
10743
+ // CSourcePhrase* pPrevSrcPhrase = NULL;
10744
10744
SPList::Node* prevPos = pos_pList->GetPrevious();
10745
- if (prevPos != NULL)
10746
- {
10747
- pPrevSrcPhrase = (CSourcePhrase*)prevPos->GetData();
10748
- }
10745
+ // if (prevPos != NULL)
10746
+ // {
10747
+ // pPrevSrcPhrase = (CSourcePhrase*)prevPos->GetData();
10748
+ // }
10749
10749
10750
10750
pos_pList = pos_pList->GetNext();
10751
10751
curSequNum = pSrcPhrase->m_nSequNumber;
@@ -12511,10 +12511,10 @@ g: bIsUnknownMkr = FALSE;
12511
12511
// conditional - we may or may not need to use it below.
12512
12512
// See more notes/comments below where we assign preStr to the m_markers
12513
12513
// member.
12514
- SPList::Node* follPos = prevPos->GetNext();
12515
- CSourcePhrase* pFollSrcPhase = NULL;
12516
- if (follPos != NULL)
12517
- pFollSrcPhase = follPos->GetData();
12514
+ // SPList::Node* follPos = prevPos->GetNext();
12515
+ // CSourcePhrase* pFollSrcPhase = NULL;
12516
+ // if (follPos != NULL)
12517
+ // pFollSrcPhase = follPos->GetData();
12518
12518
12519
12519
// whm 19Mar2024 added. Filtered material is now being stored on a previous SP.
12520
12520
// Here we need to ensure that the pPrevSrcPhrase is not a placeholder source
@@ -46334,7 +46334,7 @@ int CAdapt_ItDoc::TokenizeText(int nStartingSequNum, SPList* pList, wxString& rB
46334
46334
// and appended to the end of the list of CSourcePhrase instances, and that one
46335
46335
// gets the data prepared for filtering appended to its m_filteredInfo member.
46336
46336
// The boolean is defined now, and a caching wxString after it:
46337
- bool bDelayStoringFilteredInfo = FALSE;
46337
+ // bool bDelayStoringFilteredInfo = FALSE;
46338
46338
wxString strCacheDelayedFilteredContent = wxEmptyString;
46339
46339
// BEW 30Dec22 make sure a Doc member variables are initialised to FALSE
46340
46340
m_bWidowedParenth = FALSE;
@@ -46906,7 +46906,7 @@ int CAdapt_ItDoc::TokenizeText(int nStartingSequNum, SPList* pList, wxString& rB
46906
46906
bIsToBeFiltered = FALSE; // BEW 18Aug23 init to FALSE, otherwise it's 205 which is bogus TRUE
46907
46907
// BEW 14Aug23 here is where to declare booleans to use in contentless USFM parsing loop
46908
46908
bool bProcessEmptyMarker;
46909
- bool bExitEmptyMkrsLoop;
46909
+ // bool bExitEmptyMkrsLoop;
46910
46910
46911
46911
while (!bSuppressBackwardSearchForWordBreakChar && IsMarker(ptr))
46912
46912
{
@@ -46929,7 +46929,7 @@ int CAdapt_ItDoc::TokenizeText(int nStartingSequNum, SPList* pList, wxString& rB
46929
46929
// test bool EnterEmptyMkrsLoop returns TRUE.
46930
46930
46931
46931
// ptr is at a beginMkr, so test for entry and set up the alternate parsing loop
46932
- bExitEmptyMkrsLoop = FALSE; // init
46932
+ // bExitEmptyMkrsLoop = FALSE; // init
46933
46933
wxString atMkr = wxEmptyString;
46934
46934
wxString mkrTag = wxEmptyString;
46935
46935
wxString strVerseNum = wxEmptyString; wxString strChapterNum = wxEmptyString;
@@ -47408,7 +47408,7 @@ int CAdapt_ItDoc::TokenizeText(int nStartingSequNum, SPList* pList, wxString& rB
47408
47408
//pPrevSrcPhrase->AddToFilteredInfo(temp);
47409
47409
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
47410
47410
strCacheDelayedFilteredContent = temp; // temp is local and can now die
47411
- bDelayStoringFilteredInfo = TRUE; // BEW 17Dec22 need this TRUE value, because
47411
+ // bDelayStoringFilteredInfo = TRUE; // BEW 17Dec22 need this TRUE value, because
47412
47412
// if strCacheDelayedFilteredContent wxString is non-empty when control gets
47413
47413
// to doc end, the an extra pSrcPhrase will be automatically created to have
47414
47414
// a place to store it - see Doc lines 20,702++ for where that's done
@@ -47544,8 +47544,8 @@ int CAdapt_ItDoc::TokenizeText(int nStartingSequNum, SPList* pList, wxString& rB
47544
47544
//pSrcPhrase->m_bFirstOfType = TRUE;
47545
47545
//pSrcPhrase->m_bBoundary = TRUE;
47546
47546
}
47547
- wxChar period;
47548
- period = _T('.');
47547
+ // wxChar period;
47548
+ // period = _T('.');
47549
47549
int wholeMkrLength;
47550
47550
wholeMkrLength = 0;
47551
47551
wxString strTest;
@@ -47603,8 +47603,8 @@ int CAdapt_ItDoc::TokenizeText(int nStartingSequNum, SPList* pList, wxString& rB
47603
47603
47604
47604
ptr += awholemkrlen + eolLen;
47605
47605
47606
- wxChar* pAux;
47607
- pAux = ptr;
47606
+ // wxChar* pAux;
47607
+ // pAux = ptr;
47608
47608
#if defined (_DEBUG) && !defined (NOLOGS)
47609
47609
{
47610
47610
wxString strPointAt = wxString(ptr, 16);
@@ -48203,8 +48203,8 @@ int CAdapt_ItDoc::TokenizeText(int nStartingSequNum, SPList* pList, wxString& rB
48203
48203
}
48204
48204
}
48205
48205
#endif
48206
- wxChar period;
48207
- period = _T('.');
48206
+ // wxChar period;
48207
+ // period = _T('.');
48208
48208
wxString strTest;
48209
48209
strTest = wxEmptyString;
48210
48210
if (wholeMkr != verseMkr)
@@ -48299,7 +48299,7 @@ int CAdapt_ItDoc::TokenizeText(int nStartingSequNum, SPList* pList, wxString& rB
48299
48299
// m_inform text ("Filtered Info Carrier") are displayed
48300
48300
// in the nav text region at doc end
48301
48301
strCacheDelayedFilteredContent = temp; // temp is local and can now die
48302
- bDelayStoringFilteredInfo = TRUE; // BEW 17Dec22 need this TRUE value, because
48302
+ // bDelayStoringFilteredInfo = TRUE; // BEW 17Dec22 need this TRUE value, because
48303
48303
// if strCacheDelayedFilteredContent wxString is non-empty when control gets
48304
48304
// to doc end, the an extra pSrcPhrase will be automatically created to have
48305
48305
// a place to store it - see Doc lines 20,702++ for where that's done
@@ -50519,7 +50519,7 @@ int CAdapt_ItDoc::TokenizeText(int nStartingSequNum, SPList* pList, wxString& rB
50519
50519
// m_inform text ("Filtered Info Carrier") are displayed
50520
50520
// in the nav text region at doc end
50521
50521
strCacheDelayedFilteredContent = temp; // temp is local and can now die
50522
- bDelayStoringFilteredInfo = TRUE; // BEW 17Dec22 need this TRUE value, because
50522
+ // bDelayStoringFilteredInfo = TRUE; // BEW 17Dec22 need this TRUE value, because
50523
50523
// if strCacheDelayedFilteredContent wxString is non-empty when control gets
50524
50524
// to doc end, the an extra pSrcPhrase will be automatically created to have
50525
50525
// a place to store it - see Doc lines 20,702++ for where that's done
@@ -52605,14 +52605,14 @@ int CAdapt_ItDoc::TokenizeText(int nStartingSequNum, SPList* pList, wxString& rB
52605
52605
// been reached, m_key in pSrcPhrase will be empty. So, providing m_precPunct is
52606
52606
// empty, pSrcPhrase is not a valid CSourcePhrase instance. We need to check and
52607
52607
// remove it.
52608
- bool bPrecedingPunctIsEmpty;
52609
- bPrecedingPunctIsEmpty = pSrcPhrase->m_precPunct.IsEmpty();
52610
- bool bHasNonEndMarkers;
52611
- bHasNonEndMarkers = !pSrcPhrase->m_markers.IsEmpty();
52608
+ // bool bPrecedingPunctIsEmpty;
52609
+ // bPrecedingPunctIsEmpty = pSrcPhrase->m_precPunct.IsEmpty();
52610
+ // bool bHasNonEndMarkers;
52611
+ // bHasNonEndMarkers = !pSrcPhrase->m_markers.IsEmpty();
52612
52612
wxString someFilteredInfo;
52613
52613
someFilteredInfo = pSrcPhrase->GetFilteredInfo(); // could be empty
52614
- bool bHasFilteredInfo;
52615
- bHasFilteredInfo = !someFilteredInfo.IsEmpty();
52614
+ // bool bHasFilteredInfo;
52615
+ // bHasFilteredInfo = !someFilteredInfo.IsEmpty();
52616
52616
52617
52617
/*
52618
52618
// whm 12Jan2024 removed the following two if tests below entirely.
0 commit comments