Kaydet (Commit) c26f644d authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedmethods

Change-Id: I9188f4579900d7eec375754aa94d21ac4e8456e2
Reviewed-on: https://gerrit.libreoffice.org/45504Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 5ecc8e79
...@@ -172,7 +172,7 @@ include/tools/color.hxx:141 ...@@ -172,7 +172,7 @@ include/tools/color.hxx:141
class SvStream & Color::Write(class SvStream &) const class SvStream & Color::Write(class SvStream &) const
include/vcl/fontcharmap.hxx:48 include/vcl/fontcharmap.hxx:48
class tools::SvRef<class FontCharMap> FontCharMap::GetDefaultMap(_Bool) class tools::SvRef<class FontCharMap> FontCharMap::GetDefaultMap(_Bool)
include/vcl/gdimtf.hxx:185 include/vcl/gdimtf.hxx:184
class SvStream & GDIMetaFile::Read(class SvStream &) class SvStream & GDIMetaFile::Read(class SvStream &)
include/vcl/graphicfilter.hxx:254 include/vcl/graphicfilter.hxx:254
class ErrCode GraphicFilter::ExportGraphic(const class Graphic &,const class INetURLObject &,unsigned short,const class com::sun::star::uno::Sequence<struct com::sun::star::beans::PropertyValue> *) class ErrCode GraphicFilter::ExportGraphic(const class Graphic &,const class INetURLObject &,unsigned short,const class com::sun::star::uno::Sequence<struct com::sun::star::beans::PropertyValue> *)
......
...@@ -615,11 +615,6 @@ sal_Int32 EditNodeIdx::GetIdx() const ...@@ -615,11 +615,6 @@ sal_Int32 EditNodeIdx::GetIdx() const
return mpEditEngine->GetEditDoc().GetPos(mpNode); return mpEditEngine->GetEditDoc().GetPos(mpNode);
} }
EditNodeIdx* EditNodeIdx::Clone() const
{
return new EditNodeIdx(mpEditEngine, mpNode);
}
EditPosition::EditPosition(EditEngine* pEE, EditSelection* pSel) : EditPosition::EditPosition(EditEngine* pEE, EditSelection* pSel) :
mpEditEngine(pEE), mpCurSel(pSel) {} mpEditEngine(pEE), mpCurSel(pSel) {}
......
...@@ -56,14 +56,6 @@ int LocaleNode::getError() const ...@@ -56,14 +56,6 @@ int LocaleNode::getError() const
return err; return err;
} }
void LocaleNode::print () const {
printf ("<");
OUString str (aName);
for(sal_Int32 i = 0; i < str.getLength(); i++)
printf( "%c", str[i]);
printf (">\n");
}
void LocaleNode::addChild ( LocaleNode * node) { void LocaleNode::addChild ( LocaleNode * node) {
children.emplace_back(node); children.emplace_back(node);
node->parent = this; node->parent = this;
......
...@@ -100,7 +100,6 @@ public: ...@@ -100,7 +100,6 @@ public:
sal_Int32 getNumberOfChildren () const { return sal_Int32(children.size()); }; sal_Int32 getNumberOfChildren () const { return sal_Int32(children.size()); };
LocaleNode * getChildAt (sal_Int32 idx) const { return children[idx].get(); }; LocaleNode * getChildAt (sal_Int32 idx) const { return children[idx].get(); };
const LocaleNode * findNode ( const sal_Char *name) const; const LocaleNode * findNode ( const sal_Char *name) const;
void print () const;
virtual ~LocaleNode(); virtual ~LocaleNode();
void addChild ( LocaleNode * node); void addChild ( LocaleNode * node);
const LocaleNode* getRoot() const; const LocaleNode* getRoot() const;
......
...@@ -61,7 +61,6 @@ class EditNodeIdx ...@@ -61,7 +61,6 @@ class EditNodeIdx
public: public:
EditNodeIdx(EditEngine* pEE, ContentNode* pNd); EditNodeIdx(EditEngine* pEE, ContentNode* pNd);
sal_Int32 GetIdx() const; sal_Int32 GetIdx() const;
EditNodeIdx* Clone() const; // Cloning itself
ContentNode* GetNode() { return mpNode; } ContentNode* GetNode() { return mpNode; }
private: private:
EditEngine* mpEditEngine; EditEngine* mpEditEngine;
......
...@@ -374,54 +374,6 @@ void LwpFribPtr::XFConvert() ...@@ -374,54 +374,6 @@ void LwpFribPtr::XFConvert()
} }
void LwpFribPtr::FindLayouts()
{
LwpFrib* pFrib = m_pFribs;
while(pFrib)
{
switch(pFrib->GetType())
{
case FRIB_TAG_SECTION:
{
LwpFribSection* pSectionFrib = static_cast<LwpFribSection*>(pFrib);
LwpSection* pSection = pSectionFrib->GetSection();
if(pSection)
{
LwpPageLayout* pLayout = pSection->GetPageLayout();
if(pLayout)
{
LwpLayout::UseWhenType eSectionType = pLayout->GetUseWhenType();
if(eSectionType==LwpLayout::StartWithinColume)
{
//StartWithinColume type not support now
break;
}
LwpStory* pStory = dynamic_cast<LwpStory*>(m_pPara->GetStoryID().obj().get());
if (pStory)
pStory->AddPageLayout(pSection->GetPageLayout());
}
}
break;
}
case FRIB_TAG_PAGEBREAK:
{
LwpFribPageBreak* pPageBreak = static_cast<LwpFribPageBreak*>(pFrib);
LwpPageLayout* pLayout = dynamic_cast<LwpPageLayout*>(pPageBreak->GetLayout().obj().get());
if(pLayout)
{
LwpStory* pStory = dynamic_cast<LwpStory*>(m_pPara->GetStoryID().obj().get());
if (pStory)
pStory->AddPageLayout(pLayout);
}
break;
}
default:
break;
}
pFrib = pFrib->GetNext();
}
}
/************************************************************************** /**************************************************************************
* @descr: Whether has a frib which type is nType * @descr: Whether has a frib which type is nType
**************************************************************************/ **************************************************************************/
......
...@@ -84,7 +84,6 @@ public: ...@@ -84,7 +84,6 @@ public:
XFParagraph* GetXFPara(){return m_pXFPara;} XFParagraph* GetXFPara(){return m_pXFPara;}
void SetPara(LwpPara* para){m_pPara=para;} void SetPara(LwpPara* para){m_pPara=para;}
void RegisterStyle(); void RegisterStyle();
void FindLayouts();// for register pagelayout
LwpFrib* GetFribs(){return m_pFribs;} LwpFrib* GetFribs(){return m_pFribs;}
LwpFrib* HasFrib(sal_uInt8 nType); LwpFrib* HasFrib(sal_uInt8 nType);
bool ComparePagePosition(LwpVirtualLayout const * pPreLayout, LwpVirtualLayout const * pNextLayout); bool ComparePagePosition(LwpVirtualLayout const * pPreLayout, LwpVirtualLayout const * pNextLayout);
......
...@@ -195,7 +195,6 @@ public: ...@@ -195,7 +195,6 @@ public:
void SetTableStyleName(const OUString& rName) { maTableStyleName = rName; } void SetTableStyleName(const OUString& rName) { maTableStyleName = rName; }
sal_uInt16 GetRowsToRepeat() const { return std::min( (sal_uInt16)GetTabLines().size(), m_nRowsToRepeat ); } sal_uInt16 GetRowsToRepeat() const { return std::min( (sal_uInt16)GetTabLines().size(), m_nRowsToRepeat ); }
sal_uInt16 GetRowsToRepeat_() const { return m_nRowsToRepeat; }
void SetRowsToRepeat( sal_uInt16 nNumOfRows ) { m_nRowsToRepeat = nNumOfRows; } void SetRowsToRepeat( sal_uInt16 nNumOfRows ) { m_nRowsToRepeat = nNumOfRows; }
bool IsHeadline( const SwTableLine& rLine ) const; bool IsHeadline( const SwTableLine& rLine ) const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment