summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2018-03-12 11:10:41 +0100
committerDavid Tardon <dtardon@redhat.com>2018-03-12 11:10:41 +0100
commitfc3a3285a47433d599627b64c8b97aa16569663a (patch)
tree8420fee03e0d0511d641d403ce24cc78b33fbff5
parentb16a16cdb63c811dc860417bc8db9b012b7dd19f (diff)
drop unused function
Change-Id: I5a64871e16d755496b69f749cc2a4a11d833bc00
-rw-r--r--src/lib/PolygonUtils.cpp17
-rw-r--r--src/lib/PolygonUtils.h2
2 files changed, 0 insertions, 19 deletions
diff --git a/src/lib/PolygonUtils.cpp b/src/lib/PolygonUtils.cpp
index b5e47e9..7738809 100644
--- a/src/lib/PolygonUtils.cpp
+++ b/src/lib/PolygonUtils.cpp
@@ -5680,23 +5680,6 @@ double getSpecialIfNecessary(std::function<double(unsigned index)> calculator, i
return special ? calculator(val ^ 0x80000000) : val;
}
-Coordinate CustomShape::getTextRectangle(double x, double y, double width, double height, std::function<double(unsigned index)> calculator) const
-{
- double scaleX = width * m_coordWidth;
- double scaleY = height * m_coordHeight;
- if (m_numTextRectangles == 0)
- {
- return Coordinate(x, y, x + width, y + height);
- }
- const Vertex &start = mp_textRectangles[0].first;
- const Vertex &end = mp_textRectangles[0].second;
- double startX = x + scaleX * getSpecialIfNecessary(calculator, start.m_x);
- double startY = y + scaleY * getSpecialIfNecessary(calculator, start.m_y);
- double endX = x + scaleX * getSpecialIfNecessary(calculator, end.m_x);
- double endY = y + scaleY * getSpecialIfNecessary(calculator, end.m_y);
- return Coordinate(startX, startY, endX, endY);
-}
-
namespace
{
diff --git a/src/lib/PolygonUtils.h b/src/lib/PolygonUtils.h
index bf956d3..df0e05e 100644
--- a/src/lib/PolygonUtils.h
+++ b/src/lib/PolygonUtils.h
@@ -74,8 +74,6 @@ struct CustomShape
unsigned m_numGluePoints;
unsigned char m_adjustShiftMask;
- Coordinate getTextRectangle(double x, double y, double width, double height, std::function<double(unsigned index)> calculator) const;
-
CustomShape(const Vertex *p_vertices, unsigned numVertices, const unsigned short *p_elements, unsigned numElements, const Calculation *p_calculations, unsigned numCalculations, const int *p_defaultAdjustValues, unsigned numDefaultAdjustValues, const TextRectangle *p_textRectangles, unsigned numTextRectangles, unsigned coordWidth, unsigned coordHeight, const Vertex *p_gluePoints, unsigned numGluePoints, unsigned char adjustShiftMask = 0) :
mp_vertices(p_vertices), m_numVertices(numVertices),
mp_elements(p_elements), m_numElements(numElements),