From 8bdbda40189a7c21efbadf531c65949f68713b14 Mon Sep 17 00:00:00 2001 From: MarvNC Date: Thu, 11 Jul 2024 11:17:16 -0700 Subject: [PATCH] Remove Unused needsStructuredContent Function --- jmdict_glossary.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/jmdict_glossary.go b/jmdict_glossary.go index cf3a226..49ae078 100644 --- a/jmdict_glossary.go +++ b/jmdict_glossary.go @@ -168,27 +168,6 @@ func listAttr(lang string, listStyleType string, dataContent string) contentAttr } } -func needsStructuredContent(sense jmdict.JmdictSense, language string) bool { - for _, gloss := range sense.Glossary { - if glossContainsLanguage(gloss, language) && gloss.Type != nil { - return true - } - } - if len(sense.SourceLanguages) > 0 { - return true - } else if len(sense.Information) > 0 { - return true - } else if len(sense.Antonyms) > 0 { - return true - } else if len(sense.References) > 0 { - return true - } else if len(sense.Examples) > 0 { - return true - } else { - return false - } -} - func createGlossaryContent(sense jmdict.JmdictSense, meta jmdictMetadata) any { glossaryContents := []any{}