Skip to content

Commit

Permalink
fix: removing old code from AddBehaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Dec 7, 2021
1 parent 706daf0 commit 73a0a75
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion source/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Reflection;
using System.Runtime.CompilerServices;

[assembly: AssemblyVersion("3.1.0")]
[assembly: AssemblyVersion("3.1.1")]

[assembly: InternalsVisibleTo("JamesFrowen.PositionSync.Tests.Runtime")]
14 changes: 0 additions & 14 deletions source/SyncPositionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,6 @@ public void AddBehaviour(SyncPositionBehaviour thing)
{
uint netId = thing.NetId;
_behaviours.Add(netId, thing);


if (_behaviours.TryGetValue(netId, out SyncPositionBehaviour existingValue))
{
if (existingValue != thing)
{
// todo what is this log?
logger.LogError("Parent can't be set without control");
}
}
else
{
_behaviours.Add(netId, thing);
}
}

public void RemoveBehaviour(SyncPositionBehaviour thing)
Expand Down

0 comments on commit 73a0a75

Please sign in to comment.