aboutsummaryrefslogtreecommitdiffstats
path: root/code/q3_ui/ui_mods.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/q3_ui/ui_mods.c')
-rw-r--r--code/q3_ui/ui_mods.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/code/q3_ui/ui_mods.c b/code/q3_ui/ui_mods.c
index 9756115..e144375 100644
--- a/code/q3_ui/ui_mods.c
+++ b/code/q3_ui/ui_mods.c
@@ -106,42 +106,6 @@ static void UI_Mods_ParseInfos( char *modDir, char *modDesc ) {
}
-#if 0 // bk001204 - unused
-/*
-===============
-UI_Mods_LoadModsFromFile
-===============
-*/
-static void UI_Mods_LoadModsFromFile( char *filename ) {
- int len;
- fileHandle_t f;
- char buf[1024];
-
- len = trap_FS_FOpenFile( filename, &f, FS_READ );
- if ( !f ) {
- trap_Print( va( S_COLOR_RED "file not found: %s\n", filename ) );
- return;
- }
- if ( len >= sizeof(buf) ) {
- trap_Print( va( S_COLOR_RED "file too large: %s is %i, max allowed is %i", filename, len, sizeof(buf) ) );
- trap_FS_FCloseFile( f );
- return;
- }
-
- trap_FS_Read( buf, len, f );
- buf[len] = 0;
- trap_FS_FCloseFile( f );
-
- len = strlen( filename );
- if( !Q_stricmp(filename + len - 4,".mod") ) {
- filename[len-4] = '\0';
- }
-
- UI_Mods_ParseInfos( filename, buf );
-}
-#endif
-
-
/*
===============
UI_Mods_LoadMods