Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Jan 4, 2025
1 parent 2d0f17d commit e4ee67c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions JL.Core/Dicts/JMdict/JmdictRecordBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Diagnostics;
using JL.Core.Utilities;

namespace JL.Core.Dicts.JMdict;
Expand Down Expand Up @@ -223,19 +222,10 @@ public static void AddToDictionary(JmdictEntry entry, IDictionary<string, IList<
for (int j = 0; j < senseListCount; j++)
{
Sense sense = entry.SenseList[j];

if (sense.StagKList.Count is not 0 && sense.StagRList.Count is not 0
&& !sense.StagRList.Contains(readingElement.Reb)
&& !sense.StagKList.Contains(primarySpelling)
&& alternativeSpellings is not null && sense.StagKList.Intersect(alternativeSpellings).Any())
{
Debug.WriteLine("This should not happen.");
}

if ((sense.StagKList.Count is 0 && sense.StagRList.Count is 0)
|| sense.StagRList.Contains(readingElement.Reb)
|| sense.StagKList.Contains(primarySpelling)
// || (alternativeSpellings is not null && sense.StagKList.Intersect(alternativeSpellings).Any())
|| (alternativeSpellings is not null && sense.StagKList.Intersect(alternativeSpellings).Any())
)
{
definitionList.Add(sense.GlossList.ToArray());
Expand Down

0 comments on commit e4ee67c

Please sign in to comment.