diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-31 10:30:35 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-01 06:48:13 +0000 |
commit | fa135fd0e05fc4ba784b4349d65f2e5ed26c0f55 (patch) | |
tree | dfe79dd3f61f872b9e6b788444631285774e17ac /svx/source/tbxctrls/linectrl.cxx | |
parent | 79aaa464134970b15f6858f98cb9f8e37aced23c (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 'svx/source/tbxctrls/linectrl.cxx')
-rw-r--r-- | svx/source/tbxctrls/linectrl.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/svx/source/tbxctrls/linectrl.cxx b/svx/source/tbxctrls/linectrl.cxx index 116491cfab0b..ef930dd858e2 100644 --- a/svx/source/tbxctrls/linectrl.cxx +++ b/svx/source/tbxctrls/linectrl.cxx @@ -254,7 +254,6 @@ SvxLineEndWindow::SvxLineEndWindow( aLineEndSet ( VclPtr<ValueSet>::Create(this, WinBits( WB_ITEMBORDER | WB_3DLOOK | WB_NO_DIRECTSELECT ) )), nCols ( 2 ), nLines ( 12 ), - nLineEndWidth ( 400 ), bPopupMode ( true ), mbInResize ( false ), mxFrame ( rFrame ) @@ -275,10 +274,6 @@ void SvxLineEndWindow::implInit() const SfxPoolItem* pItem = pDocSh->GetItem( SID_LINEEND_LIST ); if( pItem ) pLineEndList = static_cast<const SvxLineEndListItem*>( pItem )->GetLineEndList(); - - pItem = pDocSh->GetItem( SID_ATTR_LINEEND_WIDTH_DEFAULT ); - if( pItem ) - nLineEndWidth = static_cast<const SfxUInt16Item*>( pItem )->GetValue(); } DBG_ASSERT( pLineEndList.is(), "LineEndList not found" ); |