loplugin:unusedfields in sc

Change-Id: If5123e676a27302f3e11475309bc748977c6f430
This commit is contained in:
Noel Grandin
2015-11-20 15:39:19 +02:00
parent 56b2a2d874
commit 05eda0dc19
54 changed files with 75 additions and 193 deletions

View File

@@ -53,12 +53,16 @@ for d in definitionSet:
continue
if d in callSet:
continue
if (definitionToSourceLocationMap[d].startswith("include/")):
srcLoc = definitionToSourceLocationMap[d];
if (srcLoc.startswith("include/")):
continue
if (definitionToSourceLocationMap[d].startswith("external/")):
if (srcLoc.startswith("external/")):
continue
# this is all representations of on-disk data structures
if (srcLoc == "sc/source/filter/inc/scflt.hxx"):
continue
tmp1set.add((clazz, definitionToSourceLocationMap[d]))
tmp1set.add((clazz, srcLoc))
# sort the results using a "natural order" so sequences like [item1,item2,item10] sort nicely
def natural_sort_key(s, _nsre=re.compile('([0-9]+)')):