From 379748fc6b51ad27ed79c6540c09a7f8e1a496d8 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 3 Aug 2020 17:57:59 +0100 Subject: [PATCH] Remove obsolete terraSync code --- src/Main/main.cxx | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index f623f33e9..9ecf07b29 100755 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -179,22 +179,6 @@ static void initTerrasync() return; } - // start TerraSync up now, so it can be synchronizing shared models - // and airports data in parallel with a nav-cache rebuild. - SGPath tsyncCache(terraSyncDir); - tsyncCache.append("terrasync-cache.xml"); - - // wipe the cache file if requested - if (flightgear::Options::sharedInstance()->isOptionSet("restore-defaults")) { - SG_LOG(SG_GENERAL, SG_INFO, "restore-defaults requested, wiping terrasync update cache at " << - tsyncCache); - if (tsyncCache.exists()) { - tsyncCache.remove(); - } - } - - fgSetString("/sim/terrasync/cache-path", tsyncCache.utf8Str()); - // make fg-root dir available so existing Scenery data can be copied, and // hence not downloaded again. fgSetString("/sim/terrasync/installation-dir", (globals->get_fg_root() / "Scenery").utf8Str());