From 8de9e7f17c170600fbdabe1654a7261d32a4549e Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 21 Feb 2004 07:39:41 +0000 Subject: [PATCH] remove unused stripextension code git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3914 d7cf8633-e32d-0410-b094-e92efae38249 --- model_sprite.c | 15 --------------- 1 file changed, 15 deletions(-) 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) { -- 2.39.2