cleanup dead code

This commit is contained in:
Chris Forbes
2009-12-02 18:57:37 +13:00
parent 8b2a76f9ce
commit e24d1938a8
3 changed files with 4 additions and 10 deletions

View File

@@ -102,7 +102,7 @@ namespace OpenRa.Game
var data = r.ReadString(); var data = r.ReadString();
return new Order(LookupPlayer(playerID), return new Order(LookupPlayer(playerID),
name, null, null, int2.Zero, data); name, null, null, int2.Zero, data) { IsImmediate = true };
} }
default: default:

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using OpenRa.Game.Traits; using OpenRa.Game.Traits;
using System.Diagnostics;
namespace OpenRa.Game namespace OpenRa.Game
{ {
@@ -18,14 +19,6 @@ namespace OpenRa.Game
public void Tick() public void Tick()
{ {
//SanityCheck();
//var units = Game.world.Actors
// .Select( a => a.traits.GetOrDefault<Traits.Mobile>() ).Where( m => m != null );
//foreach (var u in units)
// Update(u);
SanityCheck(); SanityCheck();
} }
@@ -47,7 +40,7 @@ namespace OpenRa.Game
} }
} }
[System.Diagnostics.Conditional( "SANITY_CHECKS" )] [Conditional( "SANITY_CHECKS" )]
void SanityCheckAdd( Mobile a ) void SanityCheckAdd( Mobile a )
{ {
foreach( var c in a.OccupiedCells() ) foreach( var c in a.OccupiedCells() )

View File

@@ -4,6 +4,7 @@ using System.Linq;
using OpenRa.Game.GameRules; using OpenRa.Game.GameRules;
using OpenRa.Game.Traits; using OpenRa.Game.Traits;
using IjwFramework.Types; using IjwFramework.Types;
using System.Diagnostics;
namespace OpenRa.Game namespace OpenRa.Game
{ {