[qet] qet/qet: [5786] Minor : remove unused function

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 5786
Author:   blacksun
Date:     2019-03-15 17:53:13 +0100 (Fri, 15 Mar 2019)
Log Message:
-----------
Minor : remove unused function

Modified Paths:
--------------
    trunk/sources/conductorproperties.cpp
    trunk/sources/conductorproperties.h

Modified: trunk/sources/conductorproperties.cpp
===================================================================
--- trunk/sources/conductorproperties.cpp	2019-03-12 07:57:10 UTC (rev 5785)
+++ trunk/sources/conductorproperties.cpp	2019-03-15 16:53:13 UTC (rev 5786)
@@ -402,24 +402,17 @@
 /**
 	@param t type du conducteur
 */
-QString ConductorProperties::typeToString(ConductorType t) {
-	switch(t) {
+QString ConductorProperties::typeToString(ConductorType t)
+{
+	switch(t)
+	{
 		case Single: return("single");
 		case Multi:  return("multi");
-		default: return(QString());
 	}
+	return QString();
 }
 
 /**
- * @brief ConductorProperties::setText
- * This method sets the current conductor text
- * @param text to be setted
- */
-void ConductorProperties::setText(QString text) {
-	text = text;
-}
-
-/**
  * @brief ConductorProperties::applyForEqualAttributes
  * Test each attribute of properties in the list separatly.
  * For each attributes, if is equal, the attribute is apply to this.

Modified: trunk/sources/conductorproperties.h
===================================================================
--- trunk/sources/conductorproperties.h	2019-03-12 07:57:10 UTC (rev 5785)
+++ trunk/sources/conductorproperties.h	2019-03-15 16:53:13 UTC (rev 5786)
@@ -110,7 +110,6 @@
 		void toSettings(QSettings &, const QString & = QString()) const;
 		void fromSettings(QSettings &, const QString & = QString());
 		static QString typeToString(ConductorType);
-		void setText(QString);
 		void applyForEqualAttributes(QList<ConductorProperties> list);
 
 		static ConductorProperties defaultProperties();


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/