summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-16 15:11:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-17 06:04:38 +0000
commit2b06401622f18fc57171978a33c6855461b6e16f (patch)
treeea78e7d88537bc80b829e99e0406bd19b3f40cb2 /bin
parentf2a873cd13adf0b74d18af203676f2de86d1cb2e (diff)
remove unused defines from HRC files in dbaccess
Change-Id: Ib6ef44769318e133db5744260ff9103d310ff848 Reviewed-on: https://gerrit.libreoffice.org/35268 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/find-unused-defines-in-hrc-files.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/find-unused-defines-in-hrc-files.py b/bin/find-unused-defines-in-hrc-files.py
index acf51573dd8e..011c62969286 100755
--- a/bin/find-unused-defines-in-hrc-files.py
+++ b/bin/find-unused-defines-in-hrc-files.py
@@ -132,6 +132,8 @@ with a.stdout as txt:
if "sw/inc/poolfmt.hrc:" in line2: found_reason_to_exclude = True
# not sure about these, looks suspicious
if "sd/source/ui/app/strings.src:" in line2 and idName.endswith("_TOOLBOX"): found_reason_to_exclude = True
+ # used via a macro that hides them from search
+ if "dbaccess/" in line2 and idName.startswith("PROPERTY_ID_"): found_reason_to_exclude = True
if not found_reason_to_exclude:
sys.stdout.write(idName + '\n')