From a19c58b3d5ce55ee4817457f766c33d29092b59f Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 6 Nov 2007 13:37:42 +0000 Subject: [PATCH] Deleted some unused code. --- Source/OpenTK/TexturePacker.cs | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/Source/OpenTK/TexturePacker.cs b/Source/OpenTK/TexturePacker.cs index 292173e8..3b170ec7 100644 --- a/Source/OpenTK/TexturePacker.cs +++ b/Source/OpenTK/TexturePacker.cs @@ -14,8 +14,6 @@ namespace OpenTK { class TexturePacker where T : IPackable { - //Dictionary items = new Dictionary(); - Node root; #region --- Constructors --- @@ -59,32 +57,11 @@ namespace OpenTK //items.Add(item, node); return node.Rect; } - throw new ArgumentException("The item already exists in the TexturePacker.", "item"); + //throw new ArgumentException("The item already exists in the TexturePacker.", "item"); } #endregion - #region public bool Find(T item, out Rectangle rect) - - /// - /// Searches for the item given and returns its bounding rectangle if it exists. - /// - /// The item to search for. - /// The bounding box of the item, if the item exists. - /// True if the item exists, false otherwise. - //public bool Find(T item, out Rectangle rect) - //{ - // Node node; - // bool found = items.TryGetValue(item, out node); - // if (found) - // rect = node.Rect; - // else - // rect = new Rectangle(); - // return found; - //} - - #endregion - #region public void Clear() /// @@ -109,8 +86,7 @@ namespace OpenTK /// public void ChangeSize(int new_width, int new_height) { - Clear(); - root.Rect = new Rectangle(0, 0, new_width, new_height); + throw new NotImplementedException(); } #endregion