summaryrefslogtreecommitdiff
path: root/cui
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 /cui
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 'cui')
-rw-r--r--cui/source/dialogs/SpellDialog.cxx1
-rw-r--r--cui/source/options/treeopt.cxx9
2 files changed, 1 insertions, 9 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index 439499f76f8d..5fa1b72ca20f 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -512,7 +512,6 @@ void SpellDialog::StartSpellOptDlg_Impl()
sal_uInt16 aSpellInfos[] =
{
SID_ATTR_SPELL,SID_ATTR_SPELL,
- SID_SPELL_MODIFIED, SID_SPELL_MODIFIED,
SID_AUTOSPELL_CHECK, SID_AUTOSPELL_CHECK,
0
};
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index a2d47e0741d8..fc0333228ce3 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -1288,11 +1288,8 @@ SfxItemSet* OfaTreeOptionsDialog::CreateItemSet( sal_uInt16 nId )
pRet = new SfxItemSet( SfxGetpApp()->GetPool(),
SID_BASIC_ENABLED, SID_BASIC_ENABLED,
//SID_OPTIONS_START - ..END
- SID_INET_PROXY_TYPE, SID_INET_PROXY_PORT,
SID_SAVEREL_INET, SID_SAVEREL_FSYS,
- SID_INET_SMTPSERVER, SID_INET_SMTPSERVER,
- SID_INET_NOPROXY, SID_INET_SOCKS_PROXY_PORT,
- SID_INET_DNS_AUTO, SID_INET_DNS_SERVER,
+ SID_INET_NOPROXY, SID_INET_FTP_PROXY_PORT,
SID_SECURE_URL, SID_SECURE_URL,
0L );
SfxGetpApp()->GetOptions(*pRet);
@@ -1410,10 +1407,6 @@ void OfaTreeOptionsDialog::ApplyLanguageOptions(const SfxItemSet& rSet)
bool bSaveSpellCheck = false;
const SfxPoolItem* pItem = nullptr;
- if ( SfxItemState::SET == rSet.GetItemState( SID_SPELL_MODIFIED, false, &pItem ) )
- {
- bSaveSpellCheck = static_cast<const SfxBoolItem*>(pItem)->GetValue();
- }
Reference< XComponentContext > xContext( ::comphelper::getProcessComponentContext() );
Reference< XLinguProperties > xProp = LinguProperties::create( xContext );
if ( SfxItemState::SET == rSet.GetItemState(SID_ATTR_HYPHENREGION, false, &pItem ) )