From b9c6f2de8bdcdcb95fb4f0457ee2fd0e1c42eb5b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 21 Dec 2017 13:05:54 +0200 Subject: unused SID command in starmath Change-Id: I08c09814a6a29286342fd7dc6a30ca0b6395463e Reviewed-on: https://gerrit.libreoffice.org/46909 Tested-by: Jenkins Reviewed-by: Noel Grandin --- bin/find-unused-sid-commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/find-unused-sid-commands.py') 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) -- cgit