[Kst] branches/work/kst/portto4/kst/src/libkstapp
Barth Netterfield
netterfield at astro.utoronto.ca
Fri Dec 30 20:48:24 UTC 2011
SVN commit 1270941 by netterfield:
Delete some dead code.
M +0 -13 viewitem.cpp
--- branches/work/kst/portto4/kst/src/libkstapp/viewitem.cpp #1270940:1270941
@@ -2248,13 +2248,6 @@
return; //not added to undostack
}
- //foreach (QGraphicsItem *item, list) {
- // ViewItem *viewItem = qgraphicsitem_cast<ViewItem*>(item);
- // if (!viewItem || viewItem->hasStaticGeometry() || !viewItem->allowsLayout() || viewItem->parentItem() != _item)
- // continue;
- //viewItems.append(viewItem);
- //}
-
viewItems = ViewItemManager::layoutableViewItemsForView(_item->view());
if (viewItems.isEmpty()) {
@@ -2265,12 +2258,6 @@
FormatGridHelper grid(viewItems, preserve);
- if (grid.n_cols == columns) {
- if (grid.numHoles()<columns) {
- //columns = 0; // already in correct columns - just line stuff up
- }
- }
-
if (columns == 0) {
int n_view_items = viewItems.size();
for (int i_view_item = 0; i_view_item<n_view_items; i_view_item++) {
More information about the Kst
mailing list