summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-26 14:15:47 +0200
committerNoel Grandin <noel@peralex.com>2015-11-30 10:34:38 +0200
commitd2df03574023b379ac09b1f71cae9e3ba3ac53e2 (patch)
treeca17f45377b7b506375b510f1d1733495ea9b170 /sw/source/core
parentffddd4d122433329b454f676f21a2b1ce590a1a7 (diff)
loplugin:unusedfields
Change-Id: Ife94d488ead512abc6d137a0df74298bac67185d
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/inc/frame.hxx22
-rw-r--r--sw/source/core/layout/newfrm.cxx20
2 files changed, 9 insertions, 33 deletions
diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx
index 1a51e14c9da2..12bc2c6ba685 100644
--- a/sw/source/core/inc/frame.hxx
+++ b/sw/source/core/inc/frame.hxx
@@ -110,7 +110,6 @@ struct SwRectFnCollection
SwRectGet fnGetWidth;
SwRectGet fnGetHeight;
SwRectPoint fnGetPos;
- SwRectSize fnGetSize;
SwRectSet fnSetTop;
SwRectSet fnSetBottom;
@@ -139,22 +138,19 @@ struct SwRectFnCollection
SwFrameGet fnGetPrtBottom;
SwFrameGet fnGetPrtLeft;
SwFrameGet fnGetPrtRight;
- SwRectDist fnTopDist;
- SwRectDist fnBottomDist;
- SwRectDist fnLeftDist;
- SwRectDist fnRightDist;
+ SwRectDist fnTopDist;
+ SwRectDist fnBottomDist;
SwFrameMax fnSetLimit;
- SwRectMax fnOverStep;
+ SwRectMax fnOverStep;
- SwRectSetPos fnSetPos;
+ SwRectSetPos fnSetPos;
SwFrameMakePos fnMakePos;
- SwOperator fnXDiff;
- SwOperator fnYDiff;
- SwOperator fnXInc;
- SwOperator fnYInc;
+ SwOperator fnXDiff;
+ SwOperator fnYDiff;
+ SwOperator fnYInc;
- SwRectSetTwice fnSetLeftAndWidth;
- SwRectSetTwice fnSetTopAndHeight;
+ SwRectSetTwice fnSetLeftAndWidth;
+ SwRectSetTwice fnSetTopAndHeight;
};
typedef SwRectFnCollection* SwRectFn;
diff --git a/sw/source/core/layout/newfrm.cxx b/sw/source/core/layout/newfrm.cxx
index 9f377bb4456b..15d406983491 100644
--- a/sw/source/core/layout/newfrm.cxx
+++ b/sw/source/core/layout/newfrm.cxx
@@ -63,7 +63,6 @@ static SwRectFnCollection aHorizontal = {
&SwRect::_Width,
&SwRect::_Height,
&SwRect::TopLeft,
- &SwRect::_Size,
/* fnRectSet */
&SwRect::_Top,
&SwRect::_Bottom,
@@ -94,8 +93,6 @@ static SwRectFnCollection aHorizontal = {
&SwFrame::GetPrtRight,
&SwRect::GetTopDistance,
&SwRect::GetBottomDistance,
- &SwRect::GetLeftDistance,
- &SwRect::GetRightDistance,
&SwFrame::SetMaxBottom,
&SwRect::OverStepBottom,
@@ -104,7 +101,6 @@ static SwRectFnCollection aHorizontal = {
&FirstMinusSecond,
&FirstMinusSecond,
&SwIncrement,
- &SwIncrement,
&SwRect::SetLeftAndWidth,
&SwRect::SetTopAndHeight
};
@@ -118,7 +114,6 @@ static SwRectFnCollection aVertical = {
&SwRect::_Height,
&SwRect::_Width,
&SwRect::TopRight,
- &SwRect::SwappedSize,
/* fnRectSet */
&SwRect::_Right,
&SwRect::_Left,
@@ -149,8 +144,6 @@ static SwRectFnCollection aVertical = {
&SwFrame::GetPrtBottom,
&SwRect::GetRightDistance,
&SwRect::GetLeftDistance,
- &SwRect::GetTopDistance,
- &SwRect::GetBottomDistance,
&SwFrame::SetMinLeft,
&SwRect::OverStepLeft,
@@ -159,7 +152,6 @@ static SwRectFnCollection aVertical = {
&FirstMinusSecond,
&SecondMinusFirst,
&SwIncrement,
- &SwDecrement,
&SwRect::SetTopAndHeight,
&SwRect::SetRightAndWidth
};
@@ -173,7 +165,6 @@ static SwRectFnCollection aBottomToTop = {
&SwRect::_Width,
&SwRect::_Height,
&SwRect::BottomLeft,
- &SwRect::_Size,
/* fnRectSet */
&SwRect::_Bottom,
&SwRect::_Top,
@@ -204,8 +195,6 @@ static SwRectFnCollection aBottomToTop = {
&SwFrame::GetPrtRight,
&SwRect::GetBottomDistance,
&SwRect::GetTopDistance,
- &SwRect::GetLeftDistance,
- &SwRect::GetRightDistance,
&SwFrame::SetMinTop,
&SwRect::OverStepTop,
@@ -214,7 +203,6 @@ static SwRectFnCollection aBottomToTop = {
&FirstMinusSecond,
&SecondMinusFirst,
&SwIncrement,
- &SwDecrement,
&SwRect::SetLeftAndWidth,
&SwRect::SetBottomAndHeight
};
@@ -228,7 +216,6 @@ static SwRectFnCollection aVerticalRightToLeft = {
&SwRect::_Height,
&SwRect::_Width,
&SwRect::BottomRight,
- &SwRect::SwappedSize,
/* fnRectSet */
&SwRect::_Left,
&SwRect::_Right,
@@ -259,8 +246,6 @@ static SwRectFnCollection aVerticalRightToLeft = {
&SwFrame::GetPrtTop,
&SwRect::GetLeftDistance,
&SwRect::GetRightDistance,
- &SwRect::GetBottomDistance,
- &SwRect::GetTopDistance,
&SwFrame::SetMaxRight,
&SwRect::OverStepRight,
@@ -269,7 +254,6 @@ static SwRectFnCollection aVerticalRightToLeft = {
&FirstMinusSecond,
&FirstMinusSecond,
&SwDecrement,
- &SwIncrement,
&SwRect::SetBottomAndHeight,
&SwRect::SetLeftAndWidth
};
@@ -283,7 +267,6 @@ static SwRectFnCollection aVerticalLeftToRight = {
&SwRect::_Height,
&SwRect::_Width,
&SwRect::TopLeft,
- &SwRect::SwappedSize,
/* fnRectSet */
&SwRect::_Left,
&SwRect::_Right,
@@ -314,8 +297,6 @@ static SwRectFnCollection aVerticalLeftToRight = {
&SwFrame::GetPrtBottom,
&SwRect::GetLeftDistance,
&SwRect::GetRightDistance,
- &SwRect::GetTopDistance,
- &SwRect::GetBottomDistance,
&SwFrame::SetMaxRight,
&SwRect::OverStepRight,
@@ -324,7 +305,6 @@ static SwRectFnCollection aVerticalLeftToRight = {
&FirstMinusSecond,
&FirstMinusSecond,
&SwIncrement,
- &SwIncrement,
&SwRect::SetTopAndHeight,
&SwRect::SetLeftAndWidth
};