remove obsoletes

main
runette 7 months ago
parent 4b2c383ca5
commit 088742f710
  1. 2
      Core/mapbox-sdk-cs/Platform/Response.cs
  2. 2
      Unity/Telemetry/TelemetryEditor.cs
  3. 4
      Unity/Utilities/MapVisualizerPerformance.cs

@ -257,7 +257,7 @@ namespace Mapbox.Platform
// additional string.empty check for apiResponse.error: // additional string.empty check for apiResponse.error:
// on UWP isNetworkError is sometimes set to true despite all being well // on UWP isNetworkError is sometimes set to true despite all being well
if (apiResponse.isNetworkError && !string.IsNullOrEmpty(apiResponse.error)) if (apiResponse.result == UnityWebRequest.Result.ConnectionError && !string.IsNullOrEmpty(apiResponse.error))
{ {
response.AddException(new Exception(apiResponse.error)); response.AddException(new Exception(apiResponse.error));
} }

@ -85,7 +85,7 @@ namespace Mapbox.Unity.Telemetry
while (!postRequest.isDone) { yield return null; } while (!postRequest.isDone) { yield return null; }
if (!postRequest.isNetworkError) if (postRequest.result != UnityWebRequest.Result.ConnectionError)
{ {
#else #else
var headers = new Dictionary<string, string>(); var headers = new Dictionary<string, string>();

@ -22,7 +22,7 @@
{ {
TotalTime = 0; TotalTime = 0;
_currentTest = 1; _currentTest = 1;
_map = FindObjectOfType<AbstractMap>(); _map = FindFirstObjectByType<AbstractMap>();
_mapVisualizer = _map.MapVisualizer; _mapVisualizer = _map.MapVisualizer;
_mapVisualizer.OnMapVisualizerStateChanged += (s) => _mapVisualizer.OnMapVisualizerStateChanged += (s) =>
@ -67,4 +67,4 @@
//_map.Reset(); //_map.Reset();
} }
} }
} }

Loading…
Cancel
Save