Removed useless lines of code

Removed a couple lines of code that were not needed
This commit is contained in:
FiftyShadesOfBlue 2018-03-15 22:12:00 -04:00
parent e79f0500ed
commit b537949343

View File

@ -21,7 +21,6 @@ namespace CodeWalker.Forms
private YtdFile Ytd { get; set; }
private TextureDictionary TexDict { get; set; }
private Texture CurrentTexture = null;
private float CurrentZoom = 0.0f; //1.0 = 100%, 0.0 = stretch
private new Point MouseDown;
private Boolean MouseIsHovering = false;
@ -32,7 +31,6 @@ namespace CodeWalker.Forms
InitializeComponent();
}
public void LoadYtd(YtdFile ytd)
{
Ytd = ytd;
@ -45,6 +43,7 @@ namespace CodeWalker.Forms
LoadTexDict(ytd.TextureDict, fileName);
}
public void LoadTexDict(TextureDictionary texdict, string filename)
{
TexDict = texdict;
@ -93,8 +92,6 @@ namespace CodeWalker.Forms
return texs.Length.ToString() + " texture" + ((texs.Length != 1) ? "s" : "");
}
private void ShowTextureMip(Texture tex, int mip, bool mipchange)
{
CurrentTexture = tex;
@ -113,7 +110,6 @@ namespace CodeWalker.Forms
return;
}
if (mipchange)
{
if (mip >= tex.Levels) mip = tex.Levels - 1;
@ -126,7 +122,6 @@ namespace CodeWalker.Forms
SelTextureNameTextBox.Text = tex.Name;
DetailsPropertyGrid.SelectedObject = tex;
try
{
int cmip = Math.Min(Math.Max(mip, 0), tex.Levels - 1);
@ -170,8 +165,6 @@ namespace CodeWalker.Forms
UpdateZoom();
}
private void UpdateFormTitle()
{
Text = fileName + " - Texture Dictionary - CodeWalker by dexyfex";