[qet] [3398] Element mover : remove unused var

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


Revision: 3398
Author:   blacksun
Date:     2014-10-25 16:51:02 +0200 (Sat, 25 Oct 2014)
Log Message:
-----------
Element mover : remove unused var

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

Modified: trunk/sources/elementsmover.cpp
===================================================================
--- trunk/sources/elementsmover.cpp	2014-10-25 08:32:47 UTC (rev 3397)
+++ trunk/sources/elementsmover.cpp	2014-10-25 14:51:02 UTC (rev 3398)
@@ -82,20 +82,6 @@
 				moved_content_.clear();
 		}
 	}
-	
-	/* We need to save the position of conductor text (ConductorTextItem)
-	 * if the position is defined by user
-	 * It's needed only for conductors whose the path will be recalculated */
-	foreach(Conductor *conductor, moved_content_.conductorsToUpdate) {
-		if (ConductorTextItem *text_item = conductor -> textItem()) {
-			if (text_item -> wasMovedByUser()) {
-				updated_conductors_text_pos_.insert(
-					text_item,
-					text_item -> pos()
-				);
-			}
-		}
-	}
 
 	if (!moved_content_.count()) return(-1);
 	

Modified: trunk/sources/elementsmover.h
===================================================================
--- trunk/sources/elementsmover.h	2014-10-25 08:32:47 UTC (rev 3397)
+++ trunk/sources/elementsmover.h	2014-10-25 14:51:02 UTC (rev 3398)
@@ -57,6 +57,5 @@
 	Diagram *diagram_;
 	QGraphicsItem *movement_driver_;
 	DiagramContent moved_content_;
-	QHash<ConductorTextItem *, QPointF> updated_conductors_text_pos_;
 };
 #endif


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