Unstable 0.1400.1.0

This commit is contained in:
Markus Isberg
2021-05-20 16:12:54 +03:00
parent 92f0264af2
commit 5bc850cddb
181 changed files with 2475 additions and 1588 deletions

View File

@@ -211,10 +211,7 @@ namespace FarseerPhysics.Common.Decomposition.CDT.Delaunay
for (int i = 0; i < 3; i++)
{
t = Neighbors[i];
if (t != null)
{
t.ClearNeighbor(this);
}
t?.ClearNeighbor(this);
}
ClearNeighbors();
Points[0] = Points[1] = Points[2] = null;

View File

@@ -491,10 +491,7 @@ namespace FarseerPhysics.Common.Decomposition.CDT.Delaunay.Sweep
{
triangle.MarkConstrainedEdge(index);
triangle = triangle.Neighbors[index];
if (triangle != null)
{
triangle.MarkConstrainedEdge(ep, eq);
}
triangle?.MarkConstrainedEdge(ep, eq);
return true;
}
return false;

View File

@@ -187,10 +187,7 @@ namespace FarseerPhysics.Common.Decomposition.CDT.Polygon
public void ClearSteinerPoints()
{
if (_steinerPoints != null)
{
_steinerPoints.Clear();
}
_steinerPoints?.Clear();
}
/// <summary>

View File

@@ -201,15 +201,9 @@ namespace GameAnalyticsSDK.Net.Store
}
finally
{
if(command != null)
{
command.Dispose();
}
command?.Dispose();
if(transaction != null)
{
transaction.Dispose();
}
transaction?.Dispose();
}
// Return results

View File

@@ -595,10 +595,7 @@ namespace GameAnalyticsSDK.Net.Utilities
break;
}
stack.Push(new JSONObject());
if (ctx != null)
{
ctx.Add(TokenName, stack.Peek());
}
ctx?.Add(TokenName, stack.Peek());
TokenName = "";
Token.Length = 0;
ctx = stack.Peek();
@@ -612,10 +609,7 @@ namespace GameAnalyticsSDK.Net.Utilities
}
stack.Push(new JSONArray());
if (ctx != null)
{
ctx.Add(TokenName, stack.Peek());
}
ctx?.Add(TokenName, stack.Peek());
TokenName = "";
Token.Length = 0;
ctx = stack.Peek();