diff options
author | Filippos Karapetis | 2009-02-18 10:28:16 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-02-18 10:28:16 +0000 |
commit | 5d931adb70e952557ae433c034240ac182753264 (patch) | |
tree | b7eb0a4d4ee2d0b85949d5691a080f217f2531bd /engines/sci/scicore | |
parent | 95cc0493b357869909ba850233c02265532029e1 (diff) | |
download | scummvm-rg350-5d931adb70e952557ae433c034240ac182753264.tar.gz scummvm-rg350-5d931adb70e952557ae433c034240ac182753264.tar.bz2 scummvm-rg350-5d931adb70e952557ae433c034240ac182753264.zip |
Removed the unused queue code and memfrob() definition
svn-id: r38464
Diffstat (limited to 'engines/sci/scicore')
-rw-r--r-- | engines/sci/scicore/tools.cpp | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/engines/sci/scicore/tools.cpp b/engines/sci/scicore/tools.cpp index 86967ff225..98be73cf17 100644 --- a/engines/sci/scicore/tools.cpp +++ b/engines/sci/scicore/tools.cpp @@ -72,10 +72,6 @@ # include <kos/thread.h> #endif -#ifdef HAVE_MEMFROB -void *memfrob(void *s, size_t n); -#endif - int script_debug_flag = 0; /* Defaulting to running mode */ int sci_debug_flags = 0; /* Special flags */ @@ -421,51 +417,6 @@ sci_get_homedir(void) { } -sci_queue_t * -sci_init_queue(sci_queue_t *queue) { - queue->start = queue->end = NULL; - return queue; -} - -sci_queue_t * -sci_add_to_queue(sci_queue_t *queue, void *data, int type) { - sci_queue_node_t *node = (sci_queue_node_t*)sci_malloc(sizeof(sci_queue_node_t)); - - node->next = NULL; - node->data = data; - node->type = type; - - if (queue->start) - queue->start->next = node; - - queue->start = node; - - if (!queue->end) - queue->end = node; - - return queue; -} - -void * -sci_get_from_queue(sci_queue_t *queue, int *type) { - sci_queue_node_t *node = queue->end; - if (node) { - void *retval = node->data; - if (type) - *type = node->type; - - queue->end = node->next; - - if (queue->end == NULL) /* Queue empty? */ - queue->start = NULL; - - free(node); - return retval; - } - return NULL; -} - - /*-- Yielding to the scheduler --*/ #ifdef HAVE_SCHED_YIELD |