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

loplugin:unusedfields

Change-Id: I9ae44279f1cce06bd6868005fbb878ba4894aed7
Reviewed-on: https://gerrit.libreoffice.org/58706
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst c2f318c6
...@@ -43,8 +43,7 @@ Dependencies::Dependencies( ...@@ -43,8 +43,7 @@ Dependencies::Dependencies(
m_byteDependency(false), m_shortDependency(false), m_byteDependency(false), m_shortDependency(false),
m_unsignedShortDependency(false), m_longDependency(false), m_unsignedShortDependency(false), m_longDependency(false),
m_unsignedLongDependency(false), m_hyperDependency(false), m_unsignedLongDependency(false), m_hyperDependency(false),
m_unsignedHyperDependency(false), m_floatDependency(false), m_unsignedHyperDependency(false), m_charDependency(false),
m_doubleDependency(false), m_charDependency(false),
m_stringDependency(false), m_typeDependency(false), m_anyDependency(false), m_stringDependency(false), m_typeDependency(false), m_anyDependency(false),
m_sequenceDependency(false) m_sequenceDependency(false)
{ {
...@@ -168,10 +167,8 @@ Dependencies::Dependencies( ...@@ -168,10 +167,8 @@ Dependencies::Dependencies(
m_unsignedHyperDependency = true; m_unsignedHyperDependency = true;
break; break;
case unoidl::ConstantValue::TYPE_FLOAT: case unoidl::ConstantValue::TYPE_FLOAT:
m_floatDependency = true;
break; break;
case unoidl::ConstantValue::TYPE_DOUBLE: case unoidl::ConstantValue::TYPE_DOUBLE:
m_doubleDependency = true;
break; break;
} }
} }
...@@ -251,10 +248,8 @@ void Dependencies::insert(OUString const & name, Kind kind) { ...@@ -251,10 +248,8 @@ void Dependencies::insert(OUString const & name, Kind kind) {
m_unsignedHyperDependency = true; m_unsignedHyperDependency = true;
break; break;
case UnoType::Sort::Float: case UnoType::Sort::Float:
m_floatDependency = true;
break; break;
case UnoType::Sort::Double: case UnoType::Sort::Double:
m_doubleDependency = true;
break; break;
case UnoType::Sort::Char: case UnoType::Sort::Char:
m_charDependency = true; m_charDependency = true;
......
...@@ -114,8 +114,6 @@ private: ...@@ -114,8 +114,6 @@ private:
bool m_unsignedLongDependency; bool m_unsignedLongDependency;
bool m_hyperDependency; bool m_hyperDependency;
bool m_unsignedHyperDependency; bool m_unsignedHyperDependency;
bool m_floatDependency;
bool m_doubleDependency;
bool m_charDependency; bool m_charDependency;
bool m_stringDependency; bool m_stringDependency;
bool m_typeDependency; bool m_typeDependency;
......
...@@ -37,7 +37,6 @@ enum class SvxPrevLineSpace ...@@ -37,7 +37,6 @@ enum class SvxPrevLineSpace
class SVX_DLLPUBLIC SvxParaPrevWindow final : public vcl::Window class SVX_DLLPUBLIC SvxParaPrevWindow final : public vcl::Window
{ {
Size aSize;
OUString aText; OUString aText;
tools::Rectangle Lines[9]; tools::Rectangle Lines[9];
......
...@@ -27,9 +27,6 @@ ...@@ -27,9 +27,6 @@
class SVX_DLLPUBLIC SvxRelativeField : public MetricField class SVX_DLLPUBLIC SvxRelativeField : public MetricField
{ {
private:
bool bRelative;
public: public:
SvxRelativeField(vcl::Window* pParent, WinBits nBits, FieldUnit eUnit); SvxRelativeField(vcl::Window* pParent, WinBits nBits, FieldUnit eUnit);
......
...@@ -72,8 +72,6 @@ public: ...@@ -72,8 +72,6 @@ public:
class ScXMLColumnSortContext : public ScXMLImportContext class ScXMLColumnSortContext : public ScXMLImportContext
{ {
ScSortParam maSortParam;
public: public:
ScXMLColumnSortContext(ScXMLImport& rImport, ScXMLColumnSortContext(ScXMLImport& rImport,
const rtl::Reference<sax_fastparser::FastAttributeList>& rAttrList); const rtl::Reference<sax_fastparser::FastAttributeList>& rAttrList);
......
...@@ -28,8 +28,6 @@ SvxParaPrevWindow::SvxParaPrevWindow( vcl::Window* pParent, WinBits nBits) : ...@@ -28,8 +28,6 @@ SvxParaPrevWindow::SvxParaPrevWindow( vcl::Window* pParent, WinBits nBits) :
// Count in Twips by default // Count in Twips by default
SetMapMode(MapMode(MapUnit::MapTwip)); SetMapMode(MapMode(MapUnit::MapTwip));
aSize = Size(11905, 16837);
SetBorderStyle(WindowBorderStyle::MONO); SetBorderStyle(WindowBorderStyle::MONO);
} }
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
SvxRelativeField::SvxRelativeField( SvxRelativeField::SvxRelativeField(
vcl::Window *const pParent, WinBits const nBits, FieldUnit const eUnit) vcl::Window *const pParent, WinBits const nBits, FieldUnit const eUnit)
: MetricField( pParent, nBits) : MetricField( pParent, nBits)
, bRelative(false)
{ {
SetUnit(eUnit); SetUnit(eUnit);
SetDecimalDigits( 2 ); SetDecimalDigits( 2 );
...@@ -48,7 +47,6 @@ void SvxRelativeField::SetRelative( bool bNewRelative ) ...@@ -48,7 +47,6 @@ void SvxRelativeField::SetRelative( bool bNewRelative )
if ( bNewRelative ) if ( bNewRelative )
{ {
bRelative = true;
SetDecimalDigits( 0 ); SetDecimalDigits( 0 );
SetMin( 0 ); SetMin( 0 );
SetMax( 0 ); SetMax( 0 );
...@@ -56,7 +54,6 @@ void SvxRelativeField::SetRelative( bool bNewRelative ) ...@@ -56,7 +54,6 @@ void SvxRelativeField::SetRelative( bool bNewRelative )
} }
else else
{ {
bRelative = false;
SetDecimalDigits( 2 ); SetDecimalDigits( 2 );
SetMin( 0 ); SetMin( 0 );
SetMax( 9999 ); SetMax( 9999 );
......
...@@ -106,16 +106,15 @@ SwReadOnlyPopup::SwReadOnlyPopup(const Point &rDPos, SwView &rV) ...@@ -106,16 +106,15 @@ SwReadOnlyPopup::SwReadOnlyPopup(const Point &rDPos, SwView &rV)
, m_nReadonlyCopy(m_xMenu->GetItemId("copy")) , m_nReadonlyCopy(m_xMenu->GetItemId("copy"))
, m_rView(rV) , m_rView(rV)
, m_aBrushItem(RES_BACKGROUND) , m_aBrushItem(RES_BACKGROUND)
, m_rDocPos(rDPos)
{ {
m_bGrfToGalleryAsLnk = SW_MOD()->GetModuleConfig()->IsGrfToGalleryAsLnk(); m_bGrfToGalleryAsLnk = SW_MOD()->GetModuleConfig()->IsGrfToGalleryAsLnk();
SwWrtShell &rSh = m_rView.GetWrtShell(); SwWrtShell &rSh = m_rView.GetWrtShell();
OUString sDescription; OUString sDescription;
rSh.IsURLGrfAtPos( m_rDocPos, &m_sURL, &m_sTargetFrameName, &sDescription ); rSh.IsURLGrfAtPos( rDPos, &m_sURL, &m_sTargetFrameName, &sDescription );
if ( m_sURL.isEmpty() ) if ( m_sURL.isEmpty() )
{ {
SwContentAtPos aContentAtPos( IsAttrAtPos::InetAttr ); SwContentAtPos aContentAtPos( IsAttrAtPos::InetAttr );
if( rSh.GetContentAtPos( m_rDocPos, aContentAtPos)) if( rSh.GetContentAtPos( rDPos, aContentAtPos))
{ {
const SwFormatINetFormat &rIItem = *static_cast<const SwFormatINetFormat*>(aContentAtPos.aFnd.pAttr); const SwFormatINetFormat &rIItem = *static_cast<const SwFormatINetFormat*>(aContentAtPos.aFnd.pAttr);
m_sURL = rIItem.GetValue(); m_sURL = rIItem.GetValue();
...@@ -125,7 +124,7 @@ SwReadOnlyPopup::SwReadOnlyPopup(const Point &rDPos, SwView &rV) ...@@ -125,7 +124,7 @@ SwReadOnlyPopup::SwReadOnlyPopup(const Point &rDPos, SwView &rV)
bool bLink = false; bool bLink = false;
const Graphic *pGrf; const Graphic *pGrf;
if ( nullptr == (pGrf = rSh.GetGrfAtPos( m_rDocPos, m_sGrfName, bLink )) ) if ( nullptr == (pGrf = rSh.GetGrfAtPos( rDPos, m_sGrfName, bLink )) )
{ {
m_xMenu->EnableItem(m_nReadonlySaveGraphic, false); m_xMenu->EnableItem(m_nReadonlySaveGraphic, false);
} }
......
...@@ -59,7 +59,6 @@ class SwReadOnlyPopup ...@@ -59,7 +59,6 @@ class SwReadOnlyPopup
SwView &m_rView; SwView &m_rView;
SvxBrushItem m_aBrushItem; SvxBrushItem m_aBrushItem;
const Point &m_rDocPos;
Graphic m_aGraphic; Graphic m_aGraphic;
OUString m_sURL, OUString m_sURL,
m_sTargetFrameName; m_sTargetFrameName;
......
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