removed unneeded stuff

Wed, 26 Dec 2018 23:04:09 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Wed, 26 Dec 2018 23:04:09 +0200
changeset 1434
4c06435bd87f
parent 1433
bd3a9e237ef5
child 1435
b8dc3620e5db

removed unneeded stuff

src/glcompiler.cpp file | annotate | diff | comparison | revisions
src/guiutilities.cpp file | annotate | diff | comparison | revisions
src/guiutilities.h file | annotate | diff | comparison | revisions
--- a/src/glcompiler.cpp	Wed Dec 26 23:01:45 2018 +0200
+++ b/src/glcompiler.cpp	Wed Dec 26 23:04:09 2018 +0200
@@ -185,7 +185,7 @@
 			if (polygonOwner->color() == MainColor)
 			{
 				// If that also is the main color, then we whatever the user has configured the main color to look like.
-				color = guiUtilities()->mainColorRepresentation();
+				color = mainColorRepresentation();
 			}
 			else
 			{
@@ -228,7 +228,7 @@
 	{
 		// The color was unknown. Use main color to make the polygon at least not appear pitch-black.
 		if (polygon.type != LDPolygon::Type::EdgeLine and polygon.type != LDPolygon::Type::ConditionalEdge)
-			color = guiUtilities()->mainColorRepresentation();
+			color = mainColorRepresentation();
 		else
 			color = Qt::black;
 
--- a/src/guiutilities.cpp	Wed Dec 26 23:01:45 2018 +0200
+++ b/src/guiutilities.cpp	Wed Dec 26 23:04:09 2018 +0200
@@ -110,11 +110,9 @@
 }
 
 /*
- * mainColorRepresentation
- *
  * Returns the user-preferred appearance for the main color.
  */
-QColor GuiUtilities::mainColorRepresentation()
+QColor mainColorRepresentation()
 {
 	QColor result = {config::mainColor()};
 
@@ -129,17 +127,6 @@
 	}
 }
 
-/*
- * loadQuickColorList
- *
- * Returns a list of contents for the color toolbar, based on configuration.
- */
-QVector<LDColor> GuiUtilities::loadQuickColorList()
-{
-    return config::quickColorToolbar();
-}
-
-
 void setColorButton(QPushButton* button, LDColor color)
 {
 	if (color.isValid())
--- a/src/guiutilities.h	Wed Dec 26 23:01:45 2018 +0200
+++ b/src/guiutilities.h	Wed Dec 26 23:04:09 2018 +0200
@@ -33,10 +33,9 @@
 	explicit GuiUtilities (QObject* parent);
 
 	void fillUsedColorsToComboBox (class QComboBox* box);
-	QColor mainColorRepresentation();
-    QVector<LDColor> loadQuickColorList();
 };
 
+QColor mainColorRepresentation();
 QIcon makeColorIcon(LDColor color, int size);
 void setColorButton(class QPushButton* button, LDColor color);
 void editObject(MainWindow* parent, LDObject* object);

mercurial