From 9b98ab9656f371591f5c613df126ec1c348421e4 Mon Sep 17 00:00:00 2001 From: Alex Zaytsev Date: Fri, 28 Jun 2024 01:38:06 +1000 Subject: [PATCH] Avoid adding garbage data --- projects/GKCore/GDModel/GDMLocationRecord.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/projects/GKCore/GDModel/GDMLocationRecord.cs b/projects/GKCore/GDModel/GDMLocationRecord.cs index 14f6513df..198fb7bed 100644 --- a/projects/GKCore/GDModel/GDMLocationRecord.cs +++ b/projects/GKCore/GDModel/GDMLocationRecord.cs @@ -189,7 +189,6 @@ public GDMList GetFullNames(GDMTree tree, ATDEnumeration atdEnu var topLoc = tree.GetPtrValue(topLevel); if (topLoc == null) continue; - bool wasJoin = false; var topNames = topLoc.GetFullNames(tree, atdEnum, abbreviations); for (int i = 0; i < topNames.Count; i++) { var topName = topNames[i]; @@ -198,13 +197,8 @@ public GDMList GetFullNames(GDMTree tree, ATDEnumeration atdEnu if (!interDate.IsEmpty()) { string tnVal = (abbreviations && !string.IsNullOrEmpty(topName.Abbreviation)) ? topName.Abbreviation : topName.StringValue; topBuffer.Add(new GDMLocationName(tnVal, interDate)); - wasJoin = true; } } - - if (!wasJoin && topNames.Count > 0) { - topBuffer.Add(new GDMLocationName(topNames[topNames.Count - 1].StringValue, topLevel.Date.Value)); - } } // search of intersections of location names and intersections of top levels/names