Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarthelmes authored and SanderMertens committed Jun 8, 2023
1 parent 6b67d7a commit 5f60c68
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 245 deletions.
1 change: 0 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ flecs_src = files(
'src/datastructures/map.c',
'src/datastructures/stack_allocator.c',
'src/datastructures/name_index.c',
'src/datastructures/qsort.c',
'src/datastructures/sparse.c',
'src/datastructures/strbuf.c',
'src/datastructures/switch_list.c',
Expand Down
26 changes: 0 additions & 26 deletions src/datastructures/qsort.c

This file was deleted.

203 changes: 0 additions & 203 deletions src/datastructures/qsort.h

This file was deleted.

9 changes: 0 additions & 9 deletions src/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,6 @@ int flecs_entity_compare(
return (e1 > e2) - (e1 < e2);
}

int flecs_entity_compare_qsort(
const void *e1,
const void *e2)
{
ecs_entity_t v1 = *(ecs_entity_t*)e1;
ecs_entity_t v2 = *(ecs_entity_t*)e2;
return flecs_entity_compare(v1, NULL, v2, NULL);
}

uint64_t flecs_string_hash(
const void *ptr)
{
Expand Down
6 changes: 0 additions & 6 deletions src/private_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "poly.h"
#include "stage.h"
#include "world.h"
#include "datastructures/qsort.h"
#include "datastructures/name_index.h"


Expand Down Expand Up @@ -277,11 +276,6 @@ int flecs_entity_compare(
ecs_entity_t e2,
const void *ptr2);

/* Compare function for entity ids which can be used with qsort */
int flecs_entity_compare_qsort(
const void *e1,
const void *e2);

bool flecs_name_is_id(
const char *name);

Expand Down

0 comments on commit 5f60c68

Please sign in to comment.