Get rid of some retro_assert usage

This commit is contained in:
twinaphex 2017-06-26 05:38:51 +02:00
parent d3868cc06f
commit 688414c5bb
4 changed files with 2 additions and 12 deletions

View File

@ -161,7 +161,6 @@ static unsigned char *rbmp__convert_format(
dest[0]=src[0],dest[1]=src[1],dest[2]=src[2];
break;
default:
retro_assert(0);
break;
}

View File

@ -164,7 +164,6 @@ static unsigned char *rtga__convert_format(
dest[0]=src[0],dest[1]=src[1],dest[2]=src[2];
break;
default:
retro_assert(0);
break;
}
}

View File

@ -41,10 +41,7 @@
**/
static struct item_file *realloc_file_list_capacity(file_list_t *list, size_t cap)
{
struct item_file *new_data = NULL;
retro_assert(cap > list->size);
new_data = (struct item_file*)realloc(list->list,
struct item_file *new_data = (struct item_file*)realloc(list->list,
cap * sizeof(struct item_file));
if (!new_data)

View File

@ -25,7 +25,6 @@
#include <string.h>
#include <lists/string_list.h>
#include <retro_assert.h>
#include <compat/strl.h>
#include <compat/posix_string.h>
#include <string/stdstring.h>
@ -59,10 +58,7 @@ void string_list_free(struct string_list *list)
**/
static bool string_list_capacity(struct string_list *list, size_t cap)
{
struct string_list_elem *new_data = NULL;
retro_assert(cap > list->size);
new_data = (struct string_list_elem*)
struct string_list_elem *new_data = (struct string_list_elem*)
realloc(list->elems, cap * sizeof(*new_data));
if (!new_data)
@ -194,7 +190,6 @@ void string_list_join_concat(char *buffer, size_t size,
{
size_t i, len = strlen(buffer);
retro_assert(len < size);
buffer += len;
size -= len;