Killed a bunch of logging statements

This commit is contained in:
alzeih
2010-03-18 19:50:11 +13:00
parent ec54448994
commit 8e5a5552c4
10 changed files with 1 additions and 17 deletions

View File

@@ -31,7 +31,6 @@ namespace OpenRA.FileFormats
public Stream GetContent(string filename) public Stream GetContent(string filename)
{ {
Log.Write( "GetContent from folder: {0}", filename );
try { return File.OpenRead( Path.Combine( path, filename ) ); } try { return File.OpenRead( Path.Combine( path, filename ) ); }
catch { return null; } catch { return null; }
} }

View File

@@ -55,7 +55,6 @@ namespace OpenRA
if (name != null) if (name != null)
{ {
//Log.Write("Loading {0}",name.ToLowerInvariant());
Info = Rules.Info[name.ToLowerInvariant()]; Info = Rules.Info[name.ToLowerInvariant()];
Health = this.GetMaxHP(); Health = this.GetMaxHP();

View File

@@ -67,7 +67,6 @@ namespace OpenRA
public void AddLine(Color c, string from, string text) public void AddLine(Color c, string from, string text)
{ {
Log.Write( "Chat: {0}: {1}", from, text );
recentLines.Add(Tuple.New(c, from, text)); recentLines.Add(Tuple.New(c, from, text));
var eva = Game.world.WorldActor.Info.Traits.Get<EvaAlertsInfo>(); var eva = Game.world.WorldActor.Info.Traits.Get<EvaAlertsInfo>();
Sound.Play(eva.ChatBeep); Sound.Play(eva.ChatBeep);

View File

@@ -835,8 +835,6 @@ namespace OpenRA
paletteAnimationFrame++; paletteAnimationFrame++;
else else
paletteAnimationFrame--; paletteAnimationFrame--;
Log.Write("{0}",paletteAnimationFrame);
// Calculate palette position // Calculate palette position
if (paletteAnimationFrame <= paletteAnimationLength) if (paletteAnimationFrame <= paletteAnimationLength)

View File

@@ -51,7 +51,6 @@ namespace OpenRA
var widget = (Widget)mod.First.CreateInstance(fullTypeName); var widget = (Widget)mod.First.CreateInstance(fullTypeName);
if (widget == null) continue; if (widget == null) continue;
Log.Write("Creating Widget of type {0}", widgetType);
return widget; return widget;
} }

View File

@@ -77,11 +77,6 @@ namespace OpenRA
foreach (var a in m.Assemblies) foreach (var a in m.Assemblies)
asms.Add(Pair.New(Assembly.LoadFile(Path.GetFullPath(a)), Path.GetFileNameWithoutExtension(a))); asms.Add(Pair.New(Assembly.LoadFile(Path.GetFullPath(a)), Path.GetFileNameWithoutExtension(a)));
ModAssemblies = asms.ToArray(); ModAssemblies = asms.ToArray();
foreach(var foo in ModAssemblies)
{
Log.Write("Tracking namespace {0} for reflection",foo.Second);
}
} }
public static void ChangeMap(string mapName) public static void ChangeMap(string mapName)

View File

@@ -60,13 +60,11 @@ namespace OpenRA.Graphics
foreach (XmlElement eSequence in eCursor.SelectNodes("./sequence")) foreach (XmlElement eSequence in eCursor.SelectNodes("./sequence"))
cursors.Add(eSequence.GetAttribute("name"), new CursorSequence(cursorSrc, eSequence)); cursors.Add(eSequence.GetAttribute("name"), new CursorSequence(cursorSrc, eSequence));
Log.Write("* LoadSequencesForCursor() done");
} }
static void LoadSequencesForUnit(XmlElement eUnit) static void LoadSequencesForUnit(XmlElement eUnit)
{ {
string unitName = eUnit.GetAttribute("name"); string unitName = eUnit.GetAttribute("name");
// Log.Write("Loading sequence {0}", unitName);
try { try {
var sequences = eUnit.SelectNodes("./sequence").OfType<XmlElement>() var sequences = eUnit.SelectNodes("./sequence").OfType<XmlElement>()
.Select(e => new Sequence(unitName, e)) .Select(e => new Sequence(unitName, e))

View File

@@ -48,7 +48,6 @@ namespace OpenRA.Graphics
lineRenderer = new LineRenderer(renderer); lineRenderer = new LineRenderer(renderer);
uiOverlay = new UiOverlay(spriteRenderer); uiOverlay = new UiOverlay(spriteRenderer);
palette = new HardwarePalette(renderer, world.Map); palette = new HardwarePalette(renderer, world.Map);
Log.Write("Created worldrenderer");
} }
public int GetPaletteIndex(string name) public int GetPaletteIndex(string name)

View File

@@ -1,4 +1,4 @@
#region Copyright & License Information #region Copyright & License Information
/* /*
* Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford. * Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford.
* This file is part of OpenRA. * This file is part of OpenRA.
@@ -41,7 +41,6 @@ namespace OpenRA.Traits
if (info.Theatre == null || if (info.Theatre == null ||
info.Theatre.ToLowerInvariant() == self.World.Map.Theater.ToLowerInvariant()) info.Theatre.ToLowerInvariant() == self.World.Map.Theater.ToLowerInvariant())
{ {
Log.Write("Loading palette {0} from RGBA {1} {2} {3} {4}",info.Name,info.R,info.G,info.B,info.A);
// TODO: This shouldn't rely on a base palette // TODO: This shouldn't rely on a base palette
var wr = self.World.WorldRenderer; var wr = self.World.WorldRenderer;
var pal = wr.GetPalette("player0"); var pal = wr.GetPalette("player0");

View File

@@ -65,7 +65,6 @@ namespace OpenRA.Traits
var crusher = GetUnitsAt(cell).Where(b => a != b && self.World.IsActorCrushableByActor(a, b)).FirstOrDefault(); var crusher = GetUnitsAt(cell).Where(b => a != b && self.World.IsActorCrushableByActor(a, b)).FirstOrDefault();
if (crusher != null) if (crusher != null)
{ {
Log.Write("{0} crushes {1}", crusher.Info.Name, a.Info.Name);
// Apply the crush action // Apply the crush action
foreach (var crush in a.traits.WithInterface<ICrushable>()) foreach (var crush in a.traits.WithInterface<ICrushable>())
crush.OnCrush(crusher); crush.OnCrush(crusher);