gnomemm r1971 - in cluttermm_tutorial/trunk: . examples/full_example



Author: daniel
Date: Wed Jan  7 13:43:41 2009
New Revision: 1971
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1971&view=rev

Log:
* examples/full_example/main.cc (Example::rotate_item_to_front):
Disable a piece of code that calculates a value which is not used.

Modified:
   cluttermm_tutorial/trunk/ChangeLog
   cluttermm_tutorial/trunk/examples/full_example/main.cc

Modified: cluttermm_tutorial/trunk/examples/full_example/main.cc
==============================================================================
--- cluttermm_tutorial/trunk/examples/full_example/main.cc	(original)
+++ cluttermm_tutorial/trunk/examples/full_example/main.cc	Wed Jan  7 13:43:41 2009
@@ -327,8 +327,10 @@
 
   // Set the number of frames to be proportional to the distance to travel,
   // so the speed is always the same:
+#if 0 /* TODO: This value is never used. */
   const int pos_to_move = (pos_front < pos) ? items_.size() + (pos - pos_front)
-                                            : pos_front - pos; //TODO: This is not used. murrayc.
+                                            : pos_front - pos;
+#endif
   timeline_rotation_->set_n_frames(angle_diff);
 
   // Remember what item will be at the front when this timeline finishes:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]