diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-17 12:35:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-20 06:54:49 +0000 |
commit | 4307643b2fa1f2cdc2bf087ab2285a8557d61bec (patch) | |
tree | d69120f515bfc4c90dcd00612a3263f2de67d9f5 /bin | |
parent | e604ddfd1196c877ddce603dca15f9a5228497e0 (diff) |
remove unused defines from HRC files in misc(2)
Change-Id: I6d27c03925e7756022c3e343c0873c4dd1dd90dc
Reviewed-on: https://gerrit.libreoffice.org/35324
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/find-unused-defines-in-hrc-files.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/find-unused-defines-in-hrc-files.py b/bin/find-unused-defines-in-hrc-files.py index 488b045340e5..5ad87d8cc3a0 100755 --- a/bin/find-unused-defines-in-hrc-files.py +++ b/bin/find-unused-defines-in-hrc-files.py @@ -87,6 +87,12 @@ exclusionSet = set([ "STR_VOBJ_MODE_", "STR_COND_", "SCSTR_CONTENT_", + "DATE_FUNCDESC_", + "DATE_FUNCNAME_", + "DATE_DEFFUNCNAME_", + "PRICING_DEFFUNCNAME_", + "PRICING_FUNCDESC_", + "PRICING_FUNCNAME_", ]) @@ -131,7 +137,7 @@ with a.stdout as txt: # is the constant being used as an identifier by entries in .src files if ".src:" in line2 and "HelpId = " in line2: found_reason_to_exclude = True # is it being used as a constant in an ItemList in .src files? - if ".src:" in line2 and ";> ;" in line2: found_reason_to_exclude = True + if ".src:" in line2 and (";> ;" in line2 or "; >;" in line2): found_reason_to_exclude = True # these are used in calculations in other .hrc files if "sw/inc/rcid.hrc:" in line2: found_reason_to_exclude = True # calculations |