diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-18 00:00:35 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-18 00:00:35 +0100 |
commit | 76d1d3f63fef965ba0a2d5ccea3408ad36e9ce4c (patch) | |
tree | 08b7758fc22456584b6fb3477c30bf569e79d500 /src/device_allocation.cc | |
parent | d34f472970e6a9fa2257a63ed40d021fc2c6f045 (diff) |
Remove all uses of sglib
Diffstat (limited to 'src/device_allocation.cc')
-rw-r--r-- | src/device_allocation.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/device_allocation.cc b/src/device_allocation.cc index f97de2ec..9d8267e8 100644 --- a/src/device_allocation.cc +++ b/src/device_allocation.cc @@ -1,13 +1,8 @@ #include "device_allocation.h" -int compare_device_allocation(device_allocation *a, device_allocation *b) -{ - return SGLIB_NUMERIC_COMPARATOR(a->tval, b->tval); -} - -SGLIB_DEFINE_LIST_FUNCTIONS(device_allocation, compare_device_allocation, next); +#include <cassert> -void device_allocation_init(device_allocation *device_allocation, byte tval) +static void device_allocation_init(device_allocation *device_allocation, byte tval) { assert(device_allocation != NULL); @@ -15,7 +10,6 @@ void device_allocation_init(device_allocation *device_allocation, byte tval) device_allocation->rarity = 0; range_init(&device_allocation->base_level, 0, 0); range_init(&device_allocation->max_level, 0, 0); - device_allocation->next = NULL; } device_allocation *device_allocation_new(byte tval) |