summaryrefslogtreecommitdiffstats
path: root/editeng/source
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-03 11:08:31 +0100
committerMichael Meeks <michael.meeks@suse.com>2013-03-04 11:34:07 +0000
commit5b04c9063cc9dd77dc55c361df081812af38cdbd (patch)
tree827cd9405e68df853362ac6a021c4619bf4a6bc3 /editeng/source
parentdiscard explicit SetAccessibleRelationMemberOf when members of a true VclFrame (diff)
downloadcore-5b04c9063cc9dd77dc55c361df081812af38cdbd.tar.gz
core-5b04c9063cc9dd77dc55c361df081812af38cdbd.zip
remove unused and commented out code
This code gets never called. Change-Id: I59228cba1444b7b09f74eb5cf8da9b755c7c32f7
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/editeng/edtspell.cxx24
-rw-r--r--editeng/source/editeng/edtspell.hxx2
-rw-r--r--editeng/source/items/frmitems.cxx1
-rw-r--r--editeng/source/misc/splwrap.cxx9
-rw-r--r--editeng/source/uno/unoedprx.cxx9
5 files changed, 0 insertions, 45 deletions
diff --git a/editeng/source/editeng/edtspell.cxx b/editeng/source/editeng/edtspell.cxx
index 4e44fe7772eb..8856564a1a06 100644
--- a/editeng/source/editeng/edtspell.cxx
+++ b/editeng/source/editeng/edtspell.cxx
@@ -680,30 +680,6 @@ sal_Bool EdtAutoCorrDoc::SetINetAttr( sal_uInt16 nStt, sal_uInt16 nEnd,
return sal_True;
}
-sal_Bool EdtAutoCorrDoc::HasSymbolChars( sal_uInt16 nStt, sal_uInt16 nEnd )
-{
- sal_uInt16 nScriptType = mpEditEngine->GetScriptType( EditPaM( pCurNode, nStt ) );
- sal_uInt16 nScriptFontInfoItemId = GetScriptItemId( EE_CHAR_FONTINFO, nScriptType );
-
- const CharAttribList::AttribsType& rAttribs = pCurNode->GetCharAttribs().GetAttribs();
- CharAttribList::AttribsType::const_iterator it = rAttribs.begin(), itEnd = rAttribs.end();
- for (; it != itEnd; ++it)
- {
- const EditCharAttrib& rAttr = *it;
- if (rAttr.GetStart() >= nEnd)
- return false;
-
- if (rAttr.Which() == nScriptFontInfoItemId &&
- static_cast<const SvxFontItem*>(rAttr.GetItem())->GetCharSet() == RTL_TEXTENCODING_SYMBOL)
- {
- // check if the Attribtuteis within range...
- if (rAttr.GetEnd() >= nStt)
- return true;
- }
- }
- return false;
-}
-
const String* EdtAutoCorrDoc::GetPrevPara( sal_Bool )
{
// Return previous paragraph, so that it can be determined,
diff --git a/editeng/source/editeng/edtspell.hxx b/editeng/source/editeng/edtspell.hxx
index 63ffb8085dda..699a6dff358e 100644
--- a/editeng/source/editeng/edtspell.hxx
+++ b/editeng/source/editeng/edtspell.hxx
@@ -150,8 +150,6 @@ public:
virtual sal_Bool SetAttr( sal_uInt16 nStt, sal_uInt16 nEnd, sal_uInt16 nSlotId, SfxPoolItem& );
virtual sal_Bool SetINetAttr( sal_uInt16 nStt, sal_uInt16 nEnd, const String& rURL );
- virtual sal_Bool HasSymbolChars( sal_uInt16 nStt, sal_uInt16 nEnd );
-
virtual const String* GetPrevPara( sal_Bool bAtNormalPos );
virtual sal_Bool ChgAutoCorrWord( sal_uInt16& rSttPos, sal_uInt16 nEndPos,
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index e728d1968885..698a235bedea 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -49,7 +49,6 @@
#include <tools/urlobj.hxx>
#include <comphelper/types.hxx>
#include <svl/memberid.hrc>
-#include <svtools/wallitem.hxx>
#include <svl/cntwall.hxx>
#include <svtools/borderhelper.hxx>
#include <rtl/ustring.hxx>
diff --git a/editeng/source/misc/splwrap.cxx b/editeng/source/misc/splwrap.cxx
index 26edd7e69872..aefd764892cc 100644
--- a/editeng/source/misc/splwrap.cxx
+++ b/editeng/source/misc/splwrap.cxx
@@ -306,15 +306,6 @@ void SvxSpellWrapper::ChangeWord( const String&, const sal_uInt16 )
// -----------------------------------------------------------------------
-String SvxSpellWrapper::GetThesWord()
-{
- // What word should be looked up?
- return String();
-}
-
-// -----------------------------------------------------------------------
-
-
void SvxSpellWrapper::ChangeThesWord( const String& )
{
// replace word due to Thesaurus.
diff --git a/editeng/source/uno/unoedprx.cxx b/editeng/source/uno/unoedprx.cxx
index 1eb478837072..a91b8f3cbebf 100644
--- a/editeng/source/uno/unoedprx.cxx
+++ b/editeng/source/uno/unoedprx.cxx
@@ -677,15 +677,6 @@ void SvxAccessibleTextAdapter::FieldClicked( const SvxFieldItem& rField, sal_uIn
mrTextForwarder->FieldClicked( rField, nPara, nPos );
}
-sal_Int32 SvxAccessibleTextAdapter::CalcLogicalIndex( sal_uInt16 nPara, sal_uInt16 nEEIndex )
-{
- DBG_ASSERT(mrTextForwarder, "SvxAccessibleTextAdapter: no forwarder");
-
- SvxAccessibleTextIndex aIndex;
- aIndex.SetEEIndex(nPara, nEEIndex, *mrTextForwarder);
- return aIndex.GetIndex();
-}
-
sal_uInt16 SvxAccessibleTextAdapter::CalcEditEngineIndex( sal_uInt16 nPara, sal_Int32 nLogicalIndex )
{
DBG_ASSERT(mrTextForwarder, "SvxAccessibleTextAdapter: no forwarder");