Removed all [Obsolete] code

This commit is contained in:
vis2k 2018-06-11 16:29:49 +02:00
parent df67e85e50
commit 3ac3790ee7
4 changed files with 0 additions and 33 deletions

View File

@ -65,13 +65,6 @@ internal void SetHandlers(NetworkConnection conn)
public int serverPort { get { return m_ServerPort; } }
public NetworkConnection connection { get { return m_Connection; } }
#if ENABLE_UNET_HOST_MIGRATION
[Obsolete("Moved to NetworkMigrationManager.")]
#else
[Obsolete("Removed")]
#endif
public PeerInfoMessage[] peers { get { return null; } }
internal int hostId { get { return m_ClientId; } }
public Dictionary<short, NetworkMessageDelegate> handlers { get { return m_MessageHandlers.GetHandlers(); } }
public int numChannels { get { return m_HostTopology.DefaultConfig.ChannelCount; } }

View File

@ -569,12 +569,6 @@ public virtual void TransportReceive(byte[] bytes, int numBytes, int channelId)
HandleBytes(bytes, numBytes, channelId);
}
[Obsolete("TransportRecieve has been deprecated. Use TransportReceive instead (UnityUpgradable) -> TransportReceive(*)", false)]
public virtual void TransportRecieve(byte[] bytes, int numBytes, int channelId)
{
TransportReceive(bytes, numBytes, channelId);
}
public virtual bool TransportSend(byte[] bytes, int numBytes, int channelId, out byte error)
{
return NetworkTransport.Send(hostId, connectionId, channelId, bytes, numBytes, out error);

View File

@ -73,9 +73,6 @@ public class NetworkManager : MonoBehaviour
public bool runInBackground { get { return m_RunInBackground; } set { m_RunInBackground = value; } }
public bool scriptCRCCheck { get { return m_ScriptCRCCheck; } set { m_ScriptCRCCheck = value; }}
[Obsolete("moved to NetworkMigrationManager")]
public bool sendPeerInfo { get { return false; } set {} }
public float maxDelay { get { return m_MaxDelay; } set { m_MaxDelay = value; } }
public LogFilter.FilterLevel logLevel { get { return m_LogLevel; } set { m_LogLevel = value; LogFilter.currentLogLevel = value; } }
public GameObject playerPrefab { get { return m_PlayerPrefab; } set { m_PlayerPrefab = value; } }

View File

@ -41,14 +41,6 @@ public sealed class NetworkServer
static public HostTopology hostTopology { get { return instance.m_SimpleServerSimple.hostTopology; }}
public static Dictionary<NetworkInstanceId, NetworkIdentity> objects { get { return instance.m_NetworkScene.localObjects; } }
#if ENABLE_UNET_HOST_MIGRATION
[Obsolete("Moved to NetworkMigrationManager")]
public static bool sendPeerInfo { get { return false; } set {} }
#else
[Obsolete("Removed")]
public static bool sendPeerInfo { get { return false; } set {} }
#endif
public static bool dontListen { get { return m_DontListen; } set { m_DontListen = value; } }
public static bool useWebSockets { get { return instance.m_SimpleServerSimple.useWebSockets; } set { instance.m_SimpleServerSimple.useWebSockets = value; } }
@ -1747,15 +1739,6 @@ static void SendCrc(NetworkConnection targetConnection)
targetConnection.Send(MsgType.CRC, crcMsg);
}
#if ENABLE_UNET_HOST_MIGRATION
[Obsolete("moved to NetworkMigrationManager")]
#else
[Obsolete("Removed")]
#endif
public void SendNetworkInfo(NetworkConnection targetConnection)
{
}
class ServerSimpleWrapper : NetworkServerSimple
{
NetworkServer m_Server;