summaryrefslogtreecommitdiff
path: root/src/libs/qmleditorwidgets
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2013-09-11 18:15:07 +0200
committerTobias Hunger <tobias.hunger@digia.com>2013-09-12 13:50:03 +0200
commit705c979c14e6793c3faf5fecc3ade838f0892c27 (patch)
treedd7b59e1b347bdba320a59eeff4184e99b7d5422 /src/libs/qmleditorwidgets
parentc3e5d3c772a298d46598ec15be50c8aee5d9e1df (diff)
downloadqt-creator-705c979c14e6793c3faf5fecc3ade838f0892c27.tar.gz
QmlEditorWidgets: Remove dead code
Change-Id: I4eb3128023061f4cfa07a166d1f3ed188e1d70db Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Diffstat (limited to 'src/libs/qmleditorwidgets')
-rw-r--r--src/libs/qmleditorwidgets/contextpanewidget.cpp21
-rw-r--r--src/libs/qmleditorwidgets/contextpanewidgetimage.cpp37
-rw-r--r--src/libs/qmleditorwidgets/gradientline.cpp20
3 files changed, 0 insertions, 78 deletions
diff --git a/src/libs/qmleditorwidgets/contextpanewidget.cpp b/src/libs/qmleditorwidgets/contextpanewidget.cpp
index c2f826da38..84fdb2177e 100644
--- a/src/libs/qmleditorwidgets/contextpanewidget.cpp
+++ b/src/libs/qmleditorwidgets/contextpanewidget.cpp
@@ -54,27 +54,6 @@ using namespace Utils;
namespace QmlEditorWidgets {
/* XPM */
-static const char * const line_xpm[] = {
- "14 14 3 1",
- " c None",
- ". c #0c0c0c",
- "x c #1c1c1c",
- "............. ",
- ". . ",
- ". x x . ",
- ". x x . ",
- ". x x . ",
- ". x x . ",
- ". x . ",
- ". x x . ",
- ". x x . ",
- ". x x . ",
- ". x x . ",
- ". . ",
- "............. ",
- " "};
-
-/* XPM */
static const char * pin_xpm[] = {
"12 9 7 1",
" c None",
diff --git a/src/libs/qmleditorwidgets/contextpanewidgetimage.cpp b/src/libs/qmleditorwidgets/contextpanewidgetimage.cpp
index df76de33b7..ab2a3b898f 100644
--- a/src/libs/qmleditorwidgets/contextpanewidgetimage.cpp
+++ b/src/libs/qmleditorwidgets/contextpanewidgetimage.cpp
@@ -779,43 +779,6 @@ static inline int limitPositive(int i)
return 0;
}
-static inline int limit(int i, int zoom)
-{
- static bool flag1 = 1;
- static bool flag2 = 1;
- if (zoom == 1)
- return i;
- if (i < 0) {
- int v = i / zoom;
- if (v)
- return v;
- if (zoom == 2) {
- flag1 =!flag1;
- return flag1 ? -1 : 0;
- }
- flag1 =!flag1;
- if (flag1)
- flag2 =!flag2;
-
- return flag1 && flag2 ? -1 : 0;
- }
- if (i > 0) {
- int v = i / zoom;
- if (v)
- return v;
- if (zoom == 2) {
- flag1 =!flag1;
- return flag1 ? 1 : 0;
- }
- flag1 =!flag1;
- if (flag1)
- flag2 =!flag2;
-
- return flag1 && flag2 ? 1 : 0;
- }
- return 0;
-}
-
void PreviewLabel::mouseMoveEvent(QMouseEvent * event)
{
if (!m_borderImage)
diff --git a/src/libs/qmleditorwidgets/gradientline.cpp b/src/libs/qmleditorwidgets/gradientline.cpp
index c1f1cdf9e0..f55d53528e 100644
--- a/src/libs/qmleditorwidgets/gradientline.cpp
+++ b/src/libs/qmleditorwidgets/gradientline.cpp
@@ -52,13 +52,6 @@ void GradientLine::setGradient(const QLinearGradient &gradient)
readGradient();
}
-static inline QColor invertColor(const QColor color)
-{
- QColor c = color.toHsv();
- c.setHsv(c.hue(), c.saturation(), 255 - c.value());
- return c;
-}
-
GradientLine::GradientLine(QWidget *parent) :
QWidget(parent),
m_activeColor(Qt::black),
@@ -327,19 +320,6 @@ void GradientLine::setup()
}
-static inline QColor normalizeColor(const QColor &color)
-{
- QColor newColor = QColor(color.name());
- newColor.setAlpha(color.alpha());
- return newColor;
-}
-
-static inline qreal roundReal(qreal real)
-{
- int i = real * 100;
- return qreal(i) / 100;
-}
-
void GradientLine::updateGradient()
{
if (m_useGradient) {