summaryrefslogtreecommitdiffstats
path: root/bin/find-unused-sid-commands.py
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-21 13:05:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-21 20:13:03 +0100
commitb9c6f2de8bdcdcb95fb4f0457ee2fd0e1c42eb5b (patch)
tree8fe073f43913e6e3c8a0141edfa2e2a89db90afb /bin/find-unused-sid-commands.py
parentunused SID command in sfx2 (diff)
downloadcore-b9c6f2de8bdcdcb95fb4f0457ee2fd0e1c42eb5b.tar.gz
core-b9c6f2de8bdcdcb95fb4f0457ee2fd0e1c42eb5b.zip
unused SID command in starmath
Change-Id: I08c09814a6a29286342fd7dc6a30ca0b6395463e Reviewed-on: https://gerrit.libreoffice.org/46909 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'bin/find-unused-sid-commands.py')
-rwxr-xr-xbin/find-unused-sid-commands.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/find-unused-sid-commands.py b/bin/find-unused-sid-commands.py
index 32f45e0f810a..c0e934b0b624 100755
--- a/bin/find-unused-sid-commands.py
+++ b/bin/find-unused-sid-commands.py
@@ -42,10 +42,12 @@ for pair in commandSet:
for line2 in txt2:
foundLines = foundLines + line2
if foundLines.find("ExecuteList") != -1: continue
- if foundLines.find("GetDispatcher()->Execute") != -1: continue
+ if foundLines.find("Dispatcher()->Execute") != -1: continue
if foundLines.find("ExecuteScenarioSlot") != -1: continue
# TODO not sure about this, but let's tackle the easy ones first
if foundLines.find("Invalidate(") != -1: continue
+ if foundLines.find("SFX_IMPL_DOCKINGWINDOW_WITHID") != -1: continue
+
# dump any lines that contain the SID, so we can eyeball the results
print("remove: " + commandName)