From 963af0ab02631cedb5763832db5de812b3f1c1b8 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 17 Feb 2009 09:53:27 +0000 Subject: Removed dead/unused code svn-id: r38400 --- engines/sci/include/conf_extension.h | 70 ----------------------------------- engines/sci/include/game_select.h | 36 ------------------ engines/sci/include/gfx_res_options.h | 17 --------- 3 files changed, 123 deletions(-) delete mode 100644 engines/sci/include/conf_extension.h delete mode 100644 engines/sci/include/game_select.h (limited to 'engines') diff --git a/engines/sci/include/conf_extension.h b/engines/sci/include/conf_extension.h deleted file mode 100644 index 68c74fa2da..0000000000 --- a/engines/sci/include/conf_extension.h +++ /dev/null @@ -1,70 +0,0 @@ -/*************************************************************************** - Copyright (C) 2008 Christoph Reichenbach - - - This program may be modified and copied freely according to the terms of - the GNU general public license (GPL), as long as the above copyright - notice and the licensing information contained herein are preserved. - - Please refer to www.gnu.org for licensing details. - - This work is provided AS IS, without warranty of any kind, expressed or - implied, including but not limited to the warranties of merchantability, - noninfringement, and fitness for a specific purpose. The author will not - be held liable for any damage caused by this work or derivatives of it. - - By using this source code, you agree to the licensing terms as stated - above. - - - Please contact the maintainer for bug reports or inquiries. - - Current Maintainer: - - Christoph Reichenbach (CR) - -***************************************************************************/ - -/* Config extensions handle special-purpose configuration options such as the -** graphics operations. To add new special-purpose operations, modify this file, -** the lexer, and conf_extensions.c. -*/ - -#ifndef CONF_EXTENSION_H_ -#define CONF_EXTENSION_H_ - -#include "common/scummsys.h" - -#define CONF_EXT_TYPE_INVALID -1 -#define CONF_EXT_TYPE_GFX 0 - -typedef struct { - int type; /* CONF_EXT_TYPE_* */ - void *data; -} conf_extension_t; - - - -int -conf_extension_supercedes(conf_extension_t *a, conf_extension_t *b); -/* Determines whether conf extension b shadows extension a -** Parameters: (conf_extension_t *) a: The ``earlier'' extension -** (conf_extension_t *) b: The ``later'' extension -** Returns : nonzero iff shadowing does occur -*/ - -void -conf_extension_print(FILE *file, conf_extension_t *a); -/* Prints out a config extension -** Parameters: (FILE *) file: The file to print to -** (conf_extension_t *) a: The extension to print out -*/ - -void -conf_extension_free(conf_extension_t *a); -/* Frees up all data associated with a conf extension -** Parameters: (conf_extension_t *) a: The extension to free -** This also frees up a itself. -*/ - -#endif /* !defined CONF_EXTENSION_H_ */ diff --git a/engines/sci/include/game_select.h b/engines/sci/include/game_select.h deleted file mode 100644 index 8de54d70a3..0000000000 --- a/engines/sci/include/game_select.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef _SCI_GAME_SELECT_H -#define _SCI_GAME_SELECT_H - -#include "sci/include/list.h" - -typedef struct game { - char *name; - char dir[MAXPATHLEN]; - int conf_nr; -} game_t; - -typedef struct games_list { - LIST_ENTRY(games_list) entries; - - game_t game; -} games_list_t; - -typedef LIST_HEAD(games_list_head, games_list) games_list_head_t; - -int game_select_gfxop_init_default(gfx_state_t *state, gfx_options_t *options, void *misc_info); - -int game_select_gfxop_init(gfx_state_t *state, int xfact, int yfact, gfx_color_mode_t bpp, gfx_options_t *options, void *misc_info); - -int -game_select_display(gfx_driver_t *gfx_driver, game_t* game_list, int game_count, gfx_bitmap_font_t* font_default, gfx_bitmap_font_t* font_small); - -void game_select_scan_info(gfx_driver_t *gfx_driver, gfx_bitmap_font_t* font_default, gfx_bitmap_font_t* font_small, char *name, int total); - - -#if 0 -/* this can be used to generate code that creates a particular font at runtime */ -/* this is meant to be used as a development tool */ -void save_font(int id, gfx_bitmap_font_t* font) -#endif - -#endif /* _SCI_GAME_SELECT_H */ diff --git a/engines/sci/include/gfx_res_options.h b/engines/sci/include/gfx_res_options.h index d36e003bb7..33060e19ed 100644 --- a/engines/sci/include/gfx_res_options.h +++ b/engines/sci/include/gfx_res_options.h @@ -35,9 +35,6 @@ #include "sci/include/gfx_resource.h" #include "sci/include/gfx_resmgr.h" -#define GFX_RES_PATTERN_MIN 0 -#define GFX_RES_PATTERN_MAX 65535 - typedef struct _gfx_res_pattern { int min, max; } gfx_res_pattern_t; @@ -50,8 +47,6 @@ typedef struct _gfx_res_pattern_list { /* GFX resource assignments */ -#define GFX_RES_ASSIGN_TYPE_PALETTE 0 /* Assign a palette */ - typedef struct { short type; /* GFX_RES_ASSIGN_TYPE_* */ @@ -107,18 +102,6 @@ typedef struct { struct _gfx_options; -int -gfx_update_conf(struct _gfx_options *options, - char *line); -/* Updates the configuration -** Parameters: (gfx_options_t *) options: The options list to update -** (char *) line: The text line to parse -** Modifies : (gfx_options_t *) options -** Returns : (int) 0 on success, 1 if an error occured -** The line passed to it should begin with the resource type and be -** terminated by a semicolon. -*/ - int gfx_get_res_config(struct _gfx_options *options, gfx_pixmap_t *pxm); -- cgit v1.2.3