From: havoc Date: Sat, 21 Feb 2004 07:39:41 +0000 (+0000) Subject: remove unused stripextension code X-Git-Tag: xonotic-v0.1.0preview~6081 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8de9e7f17c170600fbdabe1654a7261d32a4549e;p=xonotic%2Fdarkplaces.git remove unused stripextension code git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3914 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_sprite.c b/model_sprite.c index 103c0f57..3b1ce40e 100644 --- a/model_sprite.c +++ b/model_sprite.c @@ -37,21 +37,6 @@ void Mod_SpriteInit (void) Cvar_RegisterVariable(&r_mipsprites); } -static void Mod_Sprite_StripExtension(char *in, char *out) -{ - char *end; - end = in + strlen(in); - if ((end - in) >= 6) - if (strcmp(end - 6, ".spr32") == 0) - end -= 6; - if ((end - in) >= 4) - if (strcmp(end - 4, ".spr") == 0) - end -= 4; - while (in < end) - *out++ = *in++; - *out++ = 0; -} - static int alphaonlytable[4] = {255 | 0x80000000, 255 | 0x80000000, 255 | 0x80000000, 3}; static void Mod_Sprite_SharedSetup(qbyte *datapointer, int version, int *palette, int *alphapalette) {