[haiku-commits] r42655 - haiku/trunk/src/preferences/locale

  • From: zooey@xxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 21 Aug 2011 12:20:16 +0200 (CEST)

Author: zooey
Date: 2011-08-21 12:20:15 +0200 (Sun, 21 Aug 2011)
New Revision: 42655
Changeset: https://dev.haiku-os.org/changeset/42655

Modified:
   haiku/trunk/src/preferences/locale/LanguageListView.cpp
Log:
Drop TODO since the commented code doesn't have any effect and nothing else 
seems to be
missing either.

Modified: haiku/trunk/src/preferences/locale/LanguageListView.cpp
===================================================================
--- haiku/trunk/src/preferences/locale/LanguageListView.cpp     2011-08-21 
10:03:51 UTC (rev 42654)
+++ haiku/trunk/src/preferences/locale/LanguageListView.cpp     2011-08-21 
10:20:15 UTC (rev 42655)
@@ -353,30 +353,8 @@
                                int32 index = FullListIndexOf(where);
                                if (index < 0)
                                        index = FullListCountItems();
-                               if (fDropIndex != index) {
+                               if (fDropIndex != index)
                                        fDropIndex = index;
-                                       if (fDropIndex >= 0) {
-// TODO: find out what this was intended for (as it doesn't have any effect)
-//                                             int32 count = 
FullListCountItems();
-//                                             if (fDropIndex == count) {
-//                                                     BRect r;
-//                                                     if 
(FullListItemAt(count - 1)) {
-//                                                             r = 
ItemFrame(count - 1);
-//                                                             r.top = 
r.bottom;
-//                                                             r.bottom = 
r.top + 1.0;
-//                                                     } else {
-//                                                             r = Bounds();
-//                                                             r.bottom--;
-//                                                                     // 
compensate for scrollbars moved slightly
-//                                                                     // out 
of window
-//                                                     }
-//                                             } else {
-//                                                     BRect r = 
ItemFrame(fDropIndex);
-//                                                     r.top--;
-//                                                     r.bottom = r.top + 1.0;
-//                                             }
-                                       }
-                               }
                                break;
                        }
                }


Other related posts: