mirror of
https://github.com/libretro/RetroArch
synced 2025-02-27 00:40:20 +00:00
Get rid of some retro_assert usage
This commit is contained in:
parent
d3868cc06f
commit
688414c5bb
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user