From 07dba208b09fd4a90ca55baacf8cb94787c79ec2 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 24 Dec 2009 09:13:03 +1300 Subject: [PATCH] that wasnt really used. --- OpenRa.Game/Chrome.cs | 2 +- OpenRa.Game/Graphics/SpriteSheetBuilder.cs | 5 ----- OpenRa.Game/Graphics/UnitSheetBuilder.cs | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/OpenRa.Game/Chrome.cs b/OpenRa.Game/Chrome.cs index d098393708..5e8256a9bc 100644 --- a/OpenRa.Game/Chrome.cs +++ b/OpenRa.Game/Chrome.cs @@ -57,7 +57,7 @@ namespace OpenRa.Game .Where(u => Rules.UnitInfo[u].TechLevel != -1) .ToDictionary( u => u, - u => SpriteSheetBuilder.LoadSprite(u + "icon", ".shp")); + u => SpriteSheetBuilder.LoadAllSprites(u + "icon", ".shp")[0]); tabSprites = groups.Select( (g, i) => Pair.New(g, diff --git a/OpenRa.Game/Graphics/SpriteSheetBuilder.cs b/OpenRa.Game/Graphics/SpriteSheetBuilder.cs index beb57caea0..a6a043fd8a 100644 --- a/OpenRa.Game/Graphics/SpriteSheetBuilder.cs +++ b/OpenRa.Game/Graphics/SpriteSheetBuilder.cs @@ -12,11 +12,6 @@ namespace OpenRa.Game.Graphics static Dictionary sprites; - public static Sprite LoadSprite(string filename, params string[] exts ) - { - return LoadAllSprites( filename, exts )[ 0 ]; - } - public static Sprite[] LoadAllSprites( string filename, params string[] exts ) { Sprite[] value; diff --git a/OpenRa.Game/Graphics/UnitSheetBuilder.cs b/OpenRa.Game/Graphics/UnitSheetBuilder.cs index e7da525daa..993662374d 100644 --- a/OpenRa.Game/Graphics/UnitSheetBuilder.cs +++ b/OpenRa.Game/Graphics/UnitSheetBuilder.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using Ijw.DirectX; -using OpenRa.FileFormats; using IjwFramework.Collections; +using OpenRa.FileFormats; namespace OpenRa.Game.Graphics {