Simple code style cleanups

This commit is contained in:
Pavel Penev
2015-07-28 04:47:47 +03:00
parent 9801d89e75
commit 7701980b76
4 changed files with 29 additions and 43 deletions

View File

@@ -9,8 +9,6 @@
#endregion
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using OpenRA.Graphics;
using OpenRA.Support;
@@ -53,11 +51,10 @@ namespace OpenRA.Mods.Common.Traits
class MovementClassDomainIndex
{
Map map;
uint movementClass;
CellLayer<int> domains;
Dictionary<int, HashSet<int>> transientConnections;
readonly Map map;
readonly uint movementClass;
readonly CellLayer<int> domains;
readonly Dictionary<int, HashSet<int>> transientConnections;
public MovementClassDomainIndex(World world, uint movementClass)
{
@@ -168,8 +165,6 @@ namespace OpenRA.Mods.Common.Traits
void BuildDomains(World world)
{
var map = world.Map;
var domain = 1;
var visited = new CellLayer<bool>(map);