loplugin:unusedenumconstants in EEControlBits
(*) remove effectivly unused enum constants (*) tweak the plugins heuristics some more to remove false+ in this enum (*) twweak the python post-processing step to avoid a KeyError Change-Id: I2943ec94c00f71dcd049f5c9ef33db259c005ba3 Reviewed-on: https://gerrit.libreoffice.org/63709 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -205,6 +205,9 @@ writeonlySet = set()
|
||||
for d in writeSet:
|
||||
if d in readSet:
|
||||
continue
|
||||
# can happen with stuff in workdir or external
|
||||
if d not in definitionSet:
|
||||
continue
|
||||
srcLoc = definitionToSourceLocationMap[d];
|
||||
if (is_ignore(srcLoc)):
|
||||
continue
|
||||
@@ -214,6 +217,9 @@ readonlySet = set()
|
||||
for d in readSet:
|
||||
if d in writeSet:
|
||||
continue
|
||||
# can happen with stuff in workdir or external
|
||||
if d not in definitionSet:
|
||||
continue
|
||||
srcLoc = definitionToSourceLocationMap[d];
|
||||
if (is_ignore(srcLoc)):
|
||||
continue
|
||||
|
Reference in New Issue
Block a user