]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
remove unused stripextension code
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Feb 2004 07:39:41 +0000 (07:39 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Feb 2004 07:39:41 +0000 (07:39 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3914 d7cf8633-e32d-0410-b094-e92efae38249

model_sprite.c

index 103c0f57404de69f0e43849be5ac1429e904b544..3b1ce40edb030dc604728a1047daeba2a6847463 100644 (file)
@@ -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)
 {