summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-31 10:30:35 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-01 06:48:13 +0000
commitfa135fd0e05fc4ba784b4349d65f2e5ed26c0f55 (patch)
treedfe79dd3f61f872b9e6b788444631285774e17ac /sw
parent79aaa464134970b15f6858f98cb9f8e37aced23c (diff)
remove unused SID constants and associated code
found with a python script that looks like: process = subprocess.Popen( "git ls-files *.hrc | xargs grep -hE '#define +SID_' | cut -d ' ' -f 2 | sort -u", shell=True, stdout=subprocess.PIPE) for line in iter(process.stdout.readline, b''): line = line.strip() if line.startswith("//"): continue if line.startswith("sfx"): continue if len(line) < 10: continue i = subprocess.check_output("git grep -nP \"#define +" + line + " \"", shell=True) if i.count("#define") < 2: continue print line + " " + i Change-Id: I40eac2569c2b5b129d9459cb723a9d6f26d09264 Reviewed-on: https://gerrit.libreoffice.org/25715 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/app/docstyle.cxx1
-rw-r--r--sw/source/uibase/uiview/viewstat.cxx5
2 files changed, 0 insertions, 6 deletions
diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx
index 13e22a664f8d..52001b9c8ed5 100644
--- a/sw/source/uibase/app/docstyle.cxx
+++ b/sw/source/uibase/app/docstyle.cxx
@@ -771,7 +771,6 @@ OUString SwDocStyleSheet::GetDescription(SfxMapUnit eUnit)
case SID_ATTR_PAGE_SIZE:
case SID_ATTR_PAGE_MAXSIZE:
case SID_ATTR_PAGE_PAPERBIN:
- case SID_ATTR_PAGE_APP:
case SID_ATTR_BORDER_INNER:
break;
default:
diff --git a/sw/source/uibase/uiview/viewstat.cxx b/sw/source/uibase/uiview/viewstat.cxx
index 57230888045c..6815a61bb11f 100644
--- a/sw/source/uibase/uiview/viewstat.cxx
+++ b/sw/source/uibase/uiview/viewstat.cxx
@@ -508,11 +508,6 @@ void SwView::GetDrawState(SfxItemSet &rSet)
rSet.Put( SfxBoolItem( nWhich, m_nDrawSfxId == nWhich ) );
break;
- case SID_SHOW_HIDDEN:
- case SID_SHOW_FORMS:
- rSet.DisableItem( nWhich );
- break;
-
case SID_DRAW_TEXT_MARQUEE:
if (::GetHtmlMode(GetDocShell()) & HTMLMODE_SOME_STYLES)
rSet.Put( SfxBoolItem(nWhich, m_nDrawSfxId == nWhich));