From f3e25f0340e0f5ffd32b145d3dbc4cd70eb18cb7 Mon Sep 17 00:00:00 2001
From: Athanasius <github@miggy.org>
Date: Mon, 13 Jul 2020 21:03:57 +0100
Subject: [PATCH] EDDB system URL: Don't pick up system_address from CAPI at
 all

---
 plugins/eddb.py | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/plugins/eddb.py b/plugins/eddb.py
index 28e88b6e..da5e26db 100644
--- a/plugins/eddb.py
+++ b/plugins/eddb.py
@@ -68,13 +68,6 @@ def journal_entry(cmdr, is_beta, system, station, entry, state):
 
 
 def cmdr_data(data, is_beta):
-    if config.get('system_provider') == 'eddb':
-        # Only fill in system_address from CAPI if it's not set yet
-        # This is to avoid CAPI lagging causing incorrect value
-        if not this.system_address:
-            this.system_address = data['lastSystem']['id']
-            this.system_link['url'] = system_url(this.system_address)  # Override standard URL function
-
     # 'eddb' is also the *default* Station provider
     if not config.get('station_provider') or config.get('station_provider') == 'eddb':
         # Only use CAPI value if not yet set