summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-12-13 00:11:21 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-12-25 18:21:10 +0100
commitf9fe806df0991bf3d24e38c73077b5402df4ba9b (patch)
treeceb9e81179048fa8dfa17d303fe56947d5fc331c
parent3f62ee6e371e3a922d6f4e4b5368271c18fc4f69 (diff)
SwNoTxtFrm::nWeight is never read
Change-Id: I18cc8f4fb5e2fa2b62c360c787a4d827dab7955c
-rw-r--r--sw/source/core/doc/notxtfrm.cxx5
-rw-r--r--sw/source/core/inc/notxtfrm.hxx5
2 files changed, 0 insertions, 10 deletions
diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx
index e51fd928fd96..c296fc95251e 100644
--- a/sw/source/core/doc/notxtfrm.cxx
+++ b/sw/source/core/doc/notxtfrm.cxx
@@ -153,10 +153,6 @@ SwNoTxtFrm::SwNoTxtFrm(SwNoTxtNode * const pNode, SwFrm* pSib )
void SwNoTxtFrm::InitCtor()
{
mnType = FRMC_NOTXT;
- // The graphic's weight is 0 if it has not been read,
- // < 0 if we had a read error and we needed to use the replacement and
- // > 0 if it is available
- nWeight = 0;
}
SwCntntFrm *SwNoTxtNode::MakeFrm( SwFrm* pSib )
@@ -958,7 +954,6 @@ void SwNoTxtFrm::PaintPicture( OutputDevice* pOut, const SwRect &rGrfArea ) cons
else if ( !rGrfObj.GetGraphic().IsSupportedGraphic() )
nResId = STR_COMCORE_CANT_SHOW;
- const_cast<SwNoTxtFrm*>(this)->nWeight = -1;
OUString aText;
if ( !nResId &&
(aText = pGrfNd->GetTitle()).isEmpty() &&
diff --git a/sw/source/core/inc/notxtfrm.hxx b/sw/source/core/inc/notxtfrm.hxx
index 8eb6dbeae76b..452e200e6a4f 100644
--- a/sw/source/core/inc/notxtfrm.hxx
+++ b/sw/source/core/inc/notxtfrm.hxx
@@ -30,8 +30,6 @@ class SwNoTxtFrm: public SwCntntFrm
{
friend void _FrmFinit();
- short nWeight; // importance of the graphic
-
const Size& GetSize() const;
void InitCtor();
@@ -60,9 +58,6 @@ public:
void StopAnimation( OutputDevice* = 0 ) const;
bool HasAnimation() const;
-
- // Routine for the graphics cache
- sal_uInt16 GetWeight() { return nWeight; }
};
#endif