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