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{}