[Libreoffice-commits] core.git: starmath/inc starmath/source
Noel Grandin
noel at peralex.com
Mon Jul 20 23:54:41 PDT 2015
starmath/inc/cursor.hxx | 3 ---
starmath/inc/dialog.hxx | 2 --
starmath/inc/document.hxx | 1 -
starmath/inc/edit.hxx | 4 ----
starmath/inc/node.hxx | 6 ------
starmath/inc/parse.hxx | 2 --
starmath/inc/rect.hxx | 10 ----------
starmath/inc/symbol.hxx | 5 -----
starmath/source/accessibility.hxx | 2 --
starmath/source/cfgitem.hxx | 1 -
starmath/source/mathmlexport.hxx | 1 -
starmath/source/mathmlimport.hxx | 4 ----
starmath/source/mathtype.hxx | 2 --
13 files changed, 43 deletions(-)
New commits:
commit 060e39716dba27ecf585cec33a2de9a865980a42
Author: Noel Grandin <noel at peralex.com>
Date: Mon Jul 20 16:22:00 2015 +0200
loplugin:unusedmethods starmath
Change-Id: I543a914bb7cdfdc498cf8d9f885316fbe3e1543b
Reviewed-on: https://gerrit.libreoffice.org/17237
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
Tested-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/starmath/inc/cursor.hxx b/starmath/inc/cursor.hxx
index 188c098..07f62a0 100644
--- a/starmath/inc/cursor.hxx
+++ b/starmath/inc/cursor.hxx
@@ -98,9 +98,6 @@ public:
pGraph = NULL;
}
- /** Gets the anchor */
- SmCaretPos GetAnchor(){ return anchor->CaretPos; }
-
/** Get position */
SmCaretPos GetPosition() const { return position->CaretPos; }
diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx
index 4a64ca5..a34e505 100644
--- a/starmath/inc/dialog.hxx
+++ b/starmath/inc/dialog.hxx
@@ -161,7 +161,6 @@ class SmFontTypeDialog : public ModalDialog
DECL_LINK(MenuSelectHdl, Menu *);
DECL_LINK(DefaultButtonClickHdl, Button *);
- DECL_LINK(HelpButtonClickHdl, Button *);
public:
SmFontTypeDialog(vcl::Window *pParent, OutputDevice *pFntListDevice);
@@ -371,7 +370,6 @@ class SmSymbolDialog : public ModalDialog
DECL_LINK(GetClickHdl, void*);
void FillSymbolSets(bool bDeleteText = true);
- void SetSymbolSetManager(SmSymbolManager &rMgr);
const SmSym *GetSymbol() const;
virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx
index 93dbf26..24c10c9 100644
--- a/starmath/inc/document.hxx
+++ b/starmath/inc/document.hxx
@@ -127,7 +127,6 @@ class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener
virtual void OnDocumentPrinterChanged( Printer * ) SAL_OVERRIDE;
virtual bool InitNew( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage ) SAL_OVERRIDE;
virtual bool Load( SfxMedium& rMedium ) SAL_OVERRIDE;
- void ImplSave( tools::SvRef<SotStorageStream> xStrm );
virtual bool Save() SAL_OVERRIDE;
virtual bool SaveAs( SfxMedium& rMedium ) SAL_OVERRIDE;
virtual bool ConvertTo( SfxMedium &rMedium ) SAL_OVERRIDE;
diff --git a/starmath/inc/edit.hxx b/starmath/inc/edit.hxx
index ca3f95c..75d1d34 100644
--- a/starmath/inc/edit.hxx
+++ b/starmath/inc/edit.hxx
@@ -130,10 +130,6 @@ public:
virtual css::uno::Reference<css::accessibility::XAccessible> CreateAccessible() SAL_OVERRIDE;
using Window::GetAccessible;
- SmEditAccessible* GetAccessible()
- {
- return mxAccessible.get();
- }
};
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx
index 9b0045b..91912bb 100644
--- a/starmath/inc/node.hxx
+++ b/starmath/inc/node.hxx
@@ -228,7 +228,6 @@ protected:
inline void ClaimPaternity();
private:
SmStructureNode* aParentNode;
- void DumpAsDot(std::ostream &out, OUString* label, int number, int& id, int parent) const;
};
@@ -426,7 +425,6 @@ public:
SmPolyLineNode(const SmToken &rNodeToken);
long GetWidth() const { return nWidth; }
- Size GetToSize() const { return aToSize; }
Polygon &GetPolygon() { return aPoly; }
virtual void AdaptToX(const OutputDevice &rDev, sal_uLong nWidth) SAL_OVERRIDE;
@@ -845,10 +843,6 @@ public:
*/
class SmDynIntegralNode : public SmStructureNode
{
-protected:
- void GetHeightVerOffset(const SmRect &rRect,
- long &rHeight, long &rVerOffset) const;
-
public:
SmDynIntegralNode(const SmToken &rNodeToken)
: SmStructureNode(NDYNINT, rNodeToken)
diff --git a/starmath/inc/parse.hxx b/starmath/inc/parse.hxx
index 4c04e80..d9ce5a5 100644
--- a/starmath/inc/parse.hxx
+++ b/starmath/inc/parse.hxx
@@ -93,7 +93,6 @@ class SmParser
void DoGlyphSpecial();
// end of grammar
- LanguageType GetLanguage() const { return m_nLang; }
void SetLanguage( LanguageType nNewLang ) { m_nLang = nNewLang; }
void Error(SmParseError Error);
@@ -121,7 +120,6 @@ public:
const SmErrorDesc* PrevError();
const SmErrorDesc* GetError(size_t i);
static const SmTokenTableEntry* GetTokenTableEntry( const OUString &rName );
- bool IsUsedSymbol( const OUString &rSymbolName ) const { return m_aUsedSymbols.find( rSymbolName ) != m_aUsedSymbols.end(); }
std::set< OUString > GetUsedSymbols() const { return m_aUsedSymbols; }
};
diff --git a/starmath/inc/rect.hxx b/starmath/inc/rect.hxx
index 074ae4c..d590e3e 100644
--- a/starmath/inc/rect.hxx
+++ b/starmath/inc/rect.hxx
@@ -119,7 +119,6 @@ public:
void SetItalicSpaces(long nLeftSpace, long nRightSpace);
void SetWidth(sal_uLong nWidth) { aSize.Width() = nWidth; }
- void SetHeight(sal_uLong nHeight) { aSize.Height() = nHeight; }
void SetLeft(long nLeft);
void SetRight(long nRight);
@@ -140,8 +139,6 @@ public:
long GetItalicLeftSpace() const { return nItalicLeftSpace; }
long GetItalicRightSpace() const { return nItalicRightSpace; }
- void SetHiAttrFence(long nVal) { nHiAttrFence = nVal; }
- void SetLoAttrFence(long nVal) { nLoAttrFence = nVal; }
long GetHiAttrFence() const { return nHiAttrFence; }
long GetLoAttrFence() const { return nLoAttrFence; }
@@ -154,17 +151,10 @@ public:
inline long GetBaseline() const;
long GetBaselineOffset() const { return GetBaseline() - GetTop(); }
- void SetAlignTop(long nVal) { nAlignT = nVal; }
-
long GetAlignT() const { return nAlignT; }
long GetAlignM() const { return nAlignM; }
long GetAlignB() const { return nAlignB; }
- void SetAlignT(long nVal) { nAlignT = nVal; }
-
- const Point GetCenter() const
- { return Point(GetCenterX(), GetCenterY()); }
-
const Size & GetSize() const { return aSize; }
const Size GetItalicSize() const
diff --git a/starmath/inc/symbol.hxx b/starmath/inc/symbol.hxx
index 1f56595..da477ff 100644
--- a/starmath/inc/symbol.hxx
+++ b/starmath/inc/symbol.hxx
@@ -86,16 +86,11 @@ public:
sal_UCS4 GetCharacter() const { return m_cChar; }
const OUString& GetName() const { return m_aName; }
- void SetFace( const vcl::Font& rFont ) { m_aFace = rFont; }
- void SetCharacter( sal_UCS4 cChar ) { m_cChar = cChar; }
-
bool IsPredefined() const { return m_bPredefined; }
const OUString& GetSymbolSetName() const { return m_aSetName; }
- void SetSymbolSetName( const OUString &rName ) { m_aSetName = rName; }
const OUString& GetExportName() const { return m_aExportName; }
void SetExportName( const OUString &rName ) { m_aExportName = rName; }
- bool IsDocSymbol() const { return m_bDocSymbol; }
void SetDocSymbol( bool bVal ) { m_bDocSymbol = bVal; }
// true if rSymbol has the same name, font and character
diff --git a/starmath/source/accessibility.hxx b/starmath/source/accessibility.hxx
index b626064..98cdc60 100644
--- a/starmath/source/accessibility.hxx
+++ b/starmath/source/accessibility.hxx
@@ -83,7 +83,6 @@ public:
explicit SmGraphicAccessible( SmGraphicWindow *pGraphicWin );
virtual ~SmGraphicAccessible();
- SmGraphicWindow * GetWin() { return pWin; }
void ClearWin(); // to be called when view is destroyed
void LaunchEvent(
const sal_Int16 nAccesibleEventId,
@@ -328,7 +327,6 @@ public:
::accessibility::AccessibleTextHelper * GetTextHelper() { return pTextHelper; }
void Init();
- SmEditWindow * GetWin() { return pWin; }
void ClearWin(); // to be called when view is destroyed
//! access EditEngine and EditView via the functions in the respective window
diff --git a/starmath/source/cfgitem.hxx b/starmath/source/cfgitem.hxx
index 1fe89b4..8bdfc66 100644
--- a/starmath/source/cfgitem.hxx
+++ b/starmath/source/cfgitem.hxx
@@ -132,7 +132,6 @@ protected:
void SetFormatModified( bool bVal );
inline bool IsFormatModified() const { return bIsFormatModified; }
void SetFontFormatListModified( bool bVal );
- inline bool IsFontFormatListModified() const { return pFontFormatList && pFontFormatList->IsModified(); }
SmFontFormatList & GetFontFormatList();
const SmFontFormatList & GetFontFormatList() const
diff --git a/starmath/source/mathmlexport.hxx b/starmath/source/mathmlexport.hxx
index 9d63eaa..abd193c 100644
--- a/starmath/source/mathmlexport.hxx
+++ b/starmath/source/mathmlexport.hxx
@@ -88,7 +88,6 @@ protected:
bool bNoMrowContainer = false);
void ExportText(const SmNode *pNode, int nLevel);
void ExportMath(const SmNode *pNode, int nLevel);
- void ExportPolygon(const SmNode *pNode, int nLevel);
void ExportBinaryHorizontal(const SmNode *pNode, int nLevel);
void ExportUnaryHorizontal(const SmNode *pNode, int nLevel);
void ExportBrace(const SmNode *pNode, int nLevel);
diff --git a/starmath/source/mathmlimport.hxx b/starmath/source/mathmlimport.hxx
index 0629ce5..d9992c8 100644
--- a/starmath/source/mathmlimport.hxx
+++ b/starmath/source/mathmlimport.hxx
@@ -105,10 +105,6 @@ public:
const OUString &rLocalName,
const com::sun::star::uno::Reference <
com::sun::star::xml::sax::XAttributeList> &xAttrList) SAL_OVERRIDE;
- SvXMLImportContext *CreateMathContext(sal_uInt16 nPrefix,
- const OUString &rLocalName,
- const com::sun::star::uno::Reference <
- com::sun::star::xml::sax::XAttributeList> &xAttrList);
SvXMLImportContext *CreateRowContext(sal_uInt16 nPrefix,
const OUString &rLocalName,
const com::sun::star::uno::Reference <
diff --git a/starmath/source/mathtype.hxx b/starmath/source/mathtype.hxx
index bccb190..80eee96 100644
--- a/starmath/source/mathtype.hxx
+++ b/starmath/source/mathtype.hxx
@@ -145,8 +145,6 @@ private:
static int xfAUTO(sal_uInt8 nTest) {return nTest&0x10;}
static int xfEMBELL(sal_uInt8 nTest) {return nTest&0x20;}
static int xfNULL(sal_uInt8 nTest) {return nTest&0x10;}
- static int xfLSPACE(sal_uInt8 nTest) {return nTest&0x40;}
- static int xfRULER(sal_uInt8 nTest) {return nTest&0x20;}
void HandleNodes(SmNode *pNode,int nLevel=0);
int StartTemplate(sal_uInt16 nSelector,sal_uInt16 nVariation=0);
More information about the Libreoffice-commits
mailing list