useless sync
This commit is contained in:
parent
de24860ad4
commit
9b5d31bcf3
@ -395,7 +395,6 @@ public class LabelPlacement {
|
|||||||
/* add way labels */
|
/* add way labels */
|
||||||
for (int i = 0, n = mTileSet.cnt; i < n; i++) {
|
for (int i = 0, n = mTileSet.cnt; i < n; i++) {
|
||||||
MapTile t = tiles[i];
|
MapTile t = tiles[i];
|
||||||
synchronized (t) {
|
|
||||||
if (!t.state(READY | NEW_DATA))
|
if (!t.state(READY | NEW_DATA))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -405,12 +404,10 @@ public class LabelPlacement {
|
|||||||
|
|
||||||
l = addWayLabels(t, l, dx, dy, scale);
|
l = addWayLabels(t, l, dx, dy, scale);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* add caption */
|
/* add caption */
|
||||||
for (int i = 0, n = mTileSet.cnt; i < n; i++) {
|
for (int i = 0, n = mTileSet.cnt; i < n; i++) {
|
||||||
MapTile t = tiles[i];
|
MapTile t = tiles[i];
|
||||||
synchronized (t) {
|
|
||||||
if (!t.state(READY | NEW_DATA))
|
if (!t.state(READY | NEW_DATA))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -420,7 +417,6 @@ public class LabelPlacement {
|
|||||||
|
|
||||||
l = addNodeLabels(t, l, dx, dy, scale, cos, sin);
|
l = addNodeLabels(t, l, dx, dy, scale, cos, sin);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
for (Label ti = mLabels; ti != null; ti = (Label) ti.next) {
|
for (Label ti = mLabels; ti != null; ti = (Label) ti.next) {
|
||||||
/* add caption symbols */
|
/* add caption symbols */
|
||||||
@ -451,7 +447,6 @@ public class LabelPlacement {
|
|||||||
/* add symbol items */
|
/* add symbol items */
|
||||||
for (int i = 0, n = mTileSet.cnt; i < n; i++) {
|
for (int i = 0, n = mTileSet.cnt; i < n; i++) {
|
||||||
MapTile t = tiles[i];
|
MapTile t = tiles[i];
|
||||||
synchronized (t) {
|
|
||||||
if (!t.state(READY | NEW_DATA))
|
if (!t.state(READY | NEW_DATA))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -481,7 +476,6 @@ public class LabelPlacement {
|
|||||||
sl.addSymbol(s);
|
sl.addSymbol(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* temporary used Label */
|
/* temporary used Label */
|
||||||
l = (Label) mPool.release(l);
|
l = (Label) mPool.release(l);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user