From e19a271a86527e343af740749cbd90e3a3b7a672 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 4 Nov 2013 22:56:10 +0000 Subject: [PATCH] OSD: retire OSD_GetFmt(), OSD_GetFmtPtr() and OSD_GetTextPtr() functions. These were too much "looking into the implementation of a module" for my taste, hence OSD_GetShadePal() earlier. git-svn-id: https://svn.eduke32.com/eduke32@4138 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/osd.h | 4 ---- polymer/eduke32/build/src/osd.c | 15 --------------- 2 files changed, 19 deletions(-) diff --git a/polymer/eduke32/build/include/osd.h b/polymer/eduke32/build/include/osd.h index 6795e5ef7..f77935963 100644 --- a/polymer/eduke32/build/include/osd.h +++ b/polymer/eduke32/build/include/osd.h @@ -95,10 +95,6 @@ void OSD_SetTextMode(int32_t mode); int32_t OSD_Exec(const char *szScript); -char *OSD_GetFmt(char *ptr); -char *OSD_GetTextPtr(void); -char *OSD_GetFmtPtr(void); - // Get shade and pal index from the OSD format buffer. void OSD_GetShadePal(const char *ch, int32_t *shadeptr, int32_t *palptr); diff --git a/polymer/eduke32/build/src/osd.c b/polymer/eduke32/build/src/osd.c index 90d75e371..3b3d78809 100644 --- a/polymer/eduke32/build/src/osd.c +++ b/polymer/eduke32/build/src/osd.c @@ -278,21 +278,6 @@ int32_t OSD_OSDKey(void) return osdkey; } -char *OSD_GetTextPtr(void) -{ - return osdtext; -} - -char *OSD_GetFmtPtr(void) -{ - return osdfmt; -} - -char *OSD_GetFmt(char *ptr) -{ - return (ptr - osdtext + osdfmt); -} - int32_t OSD_GetCols(void) { return osdcols;