From 3b8d0f2439d28b23c9ba309e36458e928fc2e820 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 7 Feb 2026 20:24:51 -0500 Subject: lv2specgen: Remove unused arguments --- lv2specgen/lv2specgen.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'lv2specgen/lv2specgen.py') diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 32fd68a..f53c4dd 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -29,7 +29,6 @@ # pylint: disable=too-many-locals # pylint: disable=too-many-positional-arguments # pylint: disable=too-many-statements -# pylint: disable=unused-argument import datetime import optparse @@ -170,7 +169,7 @@ def niceName(uri): return uri -def termName(m, urinode): +def termName(urinode): "Trims the namespace out of a term to give a name to the term." return str(urinode).replace(spec_ns_str, "") @@ -762,7 +761,7 @@ def docTerms(category, termlist, m, classlist, proplist, instalist): if not term.startswith(spec_ns_str): continue - t = termName(m, term) + t = termName(term) curie = term.split(spec_ns_str[-1])[1] if t: doc += '
' % (t, term) @@ -837,9 +836,9 @@ def buildIndex(m, classlist, proplist, instalist=None): head = "" body = "" - def termLink(m, t): + def termLink(t): if str(t).startswith(spec_ns_str): - name = termName(m, t) + name = termName(t) return '%s' % (name, name) return '%s' % (str(t), str(t)) @@ -862,7 +861,7 @@ def buildIndex(m, classlist, proplist, instalist=None): continue shown[c] = True - body += "
  • " + termLink(m, c) + body += "
  • " + termLink(c) def class_tree(c): tree = "" @@ -873,7 +872,7 @@ def buildIndex(m, classlist, proplist, instalist=None): subclasses += [getSubject(s)] for s in sorted(subclasses): - tree += "
  • " + termLink(m, s) + tree += "
  • " + termLink(s) tree += class_tree(s) tree += "
  • " if tree != "": @@ -888,7 +887,7 @@ def buildIndex(m, classlist, proplist, instalist=None): head += 'Properties' body += "
      " for p in sorted(proplist): - body += "
    • %s
    • " % termLink(m, p) + body += "
    • %s
    • " % termLink(p) body += "
    \n" if instalist is not None and len(instalist) > 0: -- cgit v1.2.1