From 27675d9f4f3289aaa5722c775dd49e6d48411908 Mon Sep 17 00:00:00 2001 From: NY00123 Date: Fri, 1 May 2020 15:05:18 +0300 Subject: [PATCH] Remove the preceding sprite interpolation functions, not needed anymore --- source/sw/src/interp.cpp | 8 -------- source/sw/src/interp.h | 5 ----- 2 files changed, 13 deletions(-) diff --git a/source/sw/src/interp.cpp b/source/sw/src/interp.cpp index c213386d2..2fdec8956 100644 --- a/source/sw/src/interp.cpp +++ b/source/sw/src/interp.cpp @@ -111,12 +111,4 @@ void restoreinterpolations(void) // Stick at end of drawscreen *curipos[i] = bakipos[i]; } -void togglespriteinterpolation(spritetype *sp, int set) -{ - auto func = set ? setinterpolation : stopinterpolation; - func(&sp->x); - func(&sp->y); - func(&sp->z); -} - END_SW_NS diff --git a/source/sw/src/interp.h b/source/sw/src/interp.h index 8ac33a8d4..aa44fec8e 100644 --- a/source/sw/src/interp.h +++ b/source/sw/src/interp.h @@ -50,11 +50,6 @@ void updateinterpolations(void); void dointerpolations(int smoothratio); void restoreinterpolations(void); -void togglespriteinterpolation(spritetype *sp, int set); - -static void FORCE_INLINE setspriteinterpolation(spritetype *sp) { togglespriteinterpolation(sp, 1); } -static void FORCE_INLINE stopspriteinterpolation(spritetype *sp) { togglespriteinterpolation(sp, 0); } - #endif END_SW_NS