From 3ef7e85deb7afde6c9453c30be0a7893528a90a1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 14 Jul 2017 11:25:42 +0200 Subject: remove some dead code from unusedfields plugin Change-Id: I268b32270a17c0c3fcf8236c3e0eebac9a57cb5d --- compilerplugins/clang/unusedfields.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'compilerplugins/clang/unusedfields.py') diff --git a/compilerplugins/clang/unusedfields.py b/compilerplugins/clang/unusedfields.py index 217a6e7c8623..4e8e60fa1622 100755 --- a/compilerplugins/clang/unusedfields.py +++ b/compilerplugins/clang/unusedfields.py @@ -9,7 +9,6 @@ protectedAndPublicDefinitionSet = set() # set of tuple(type, name) definitionToSourceLocationMap = dict() definitionToTypeMap = dict() touchedFromInsideSet = set() -touchedFromConstructorSet = set() readFromSet = set() sourceLocationSet = set() touchedFromOutsideSet = set() @@ -48,8 +47,6 @@ with io.open("loplugin.unusedfields.log", "rb", buffering=1024*1024) as txt: definitionToSourceLocationMap[fieldInfo] = tokens[5] elif tokens[0] == "inside:": touchedFromInsideSet.add(parseFieldInfo(tokens)) - elif tokens[0] == "constructor:": - touchedFromConstructorSet.add(parseFieldInfo(tokens)) elif tokens[0] == "outside:": touchedFromOutsideSet.add(parseFieldInfo(tokens)) elif tokens[0] == "read:": -- cgit