summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-08-07 21:13:52 +0300
committerMarc Mutz <marc.mutz@kdab.com>2016-08-17 08:58:42 +0000
commit3d39c66369300569fa596e2d44b3d7887b6a9005 (patch)
treea924688a1721aa1a3cdc59b35e7ee3e5eb797f73
parent1e4ba2b4e5f4f16ed349452e1e592df461db29a4 (diff)
QColor: remove unused qt_get_rgb_val()
Defined out-of-line, not exported, not used anywhere in QtGui, so it can be removed. Change-Id: Ib049bad7d02e5412c063965cd81c8d95e1c1c183 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
-rw-r--r--src/gui/painting/qcolor_p.cpp12
-rw-r--r--src/gui/painting/qcolor_p.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/src/gui/painting/qcolor_p.cpp b/src/gui/painting/qcolor_p.cpp
index 84874bb75f..96f9620300 100644
--- a/src/gui/painting/qcolor_p.cpp
+++ b/src/gui/painting/qcolor_p.cpp
@@ -337,14 +337,6 @@ bool qt_get_named_rgb(const QChar *name, int len, QRgb *rgb)
return get_named_rgb(name_no_space, rgb);
}
-
-uint qt_get_rgb_val(const char *name)
-{
- QRgb r = 0;
- qt_get_named_rgb(name,&r);
- return r;
-}
-
QStringList qt_get_colornames()
{
int i = 0;
@@ -362,10 +354,6 @@ bool qt_get_named_rgb(const char *, QRgb*)
return false;
}
-uint qt_get_rgb_val(const char *)
-{
- return 0;
-}
QStringList qt_get_colornames()
{
return QStringList();
diff --git a/src/gui/painting/qcolor_p.h b/src/gui/painting/qcolor_p.h
index a8d52672f0..b5e92e2ea2 100644
--- a/src/gui/painting/qcolor_p.h
+++ b/src/gui/painting/qcolor_p.h
@@ -57,7 +57,6 @@
QT_BEGIN_NAMESPACE
-uint qt_get_rgb_val(const char *name);
bool qt_get_named_rgb(const char *, QRgb*);
bool qt_get_named_rgb(const QChar *, int len, QRgb*);
bool qt_get_hex_rgb(const char *, QRgb *);