From 43e81343caba072317c0141ef30fc75b3cedab0f Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 6 May 2021 14:20:14 +1000 Subject: Remove dead code and imports as found by Vulture. https://github.com/jendrikseipp/vulture --- scripts/CheckMentioned.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'scripts/CheckMentioned.py') diff --git a/scripts/CheckMentioned.py b/scripts/CheckMentioned.py index cd518ce28..bf26a0ba3 100644 --- a/scripts/CheckMentioned.py +++ b/scripts/CheckMentioned.py @@ -68,15 +68,6 @@ def convertIFaceTypeToC(t): def makeParm(t, n, v): return (convertIFaceTypeToC(t) + n).rstrip() -def makeRet(params): - retType = params["ReturnType"] - if retType in ["void", "string", "stringresult"]: - retType = "" - if retType: - retType = " → " + retType - - return retType - def makeSig(params): p1 = makeParm(params["Param1Type"], params["Param1Name"], params["Param1Value"]) p2 = makeParm(params["Param2Type"], params["Param2Name"], params["Param2Value"]) @@ -92,7 +83,6 @@ def makeSig(params): if p1 == "" and p2 == "": return retType - ret = "" if p1 == "": p1 = "<unused>" joiner = "" @@ -140,7 +130,6 @@ def checkDocumentation(): # Examine header sections which point to definitions #SCI_SETLAYOUTCACHE(int cacheMode)
dirPattern = re.compile(r'([A-Z][A-Za-z0-9_() *&;,\n]+)') - firstWord = re.compile(r'[A-Z0-9_]+') for api, sig in re.findall(dirPattern, docs): sigApi = re.split('\W+', sig)[0] sigFlat = flattenSpaces(sig) -- cgit v1.2.3