Browse Source

Remove unused test code

QGC4.4
DonLakeFlyer 5 years ago
parent
commit
0816724630
  1. 9
      src/QtLocationPlugin/QGCMapEngine.cpp

9
src/QtLocationPlugin/QGCMapEngine.cpp

@ -222,15 +222,6 @@ QGCMapEngine::cacheTile(QString type, const QString& hash, const QByteArray& ima @@ -222,15 +222,6 @@ QGCMapEngine::cacheTile(QString type, const QString& hash, const QByteArray& ima
QString
QGCMapEngine::getTileHash(QString type, int x, int y, int z)
{
#if 0
int maxCachedZoom = 15;
if (z > maxCachedZoom) {
double unZoomFactor = qPow(2, z - maxCachedZoom);
x = (double)x / unZoomFactor;
y = (double)y / unZoomFactor;
z = maxCachedZoom;
}
#endif
return QString::asprintf("%010d%08d%08d%03d", getQGCMapEngine()->urlFactory()->getIdFromType(type), x, y, z);
}

Loading…
Cancel
Save