[glib/wip/pwithnall/restore-macos-ci: 95/98] tests: Remove unused inline functions from slice tests
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/pwithnall/restore-macos-ci: 95/98] tests: Remove unused inline functions from slice tests
- Date: Tue, 7 Jun 2022 17:27:26 +0000 (UTC)
commit 8d613ee7ff4fa911310398c47dea942fa3b78855
Author: Philip Withnall <pwithnall endlessos org>
Date: Fri May 27 15:29:37 2022 +0100
tests: Remove unused inline functions from slice tests
These were causing compiler warnings when compiling with clang.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
glib/tests/slice-eager-freeing.c | 19 -------------------
glib/tests/slice-glib.c | 19 -------------------
glib/tests/slice-malloc.c | 19 -------------------
glib/tests/slice-slab.c | 19 -------------------
4 files changed, 76 deletions(-)
---
diff --git a/glib/tests/slice-eager-freeing.c b/glib/tests/slice-eager-freeing.c
index 2cccd4f10c..9d684145fc 100644
--- a/glib/tests/slice-eager-freeing.c
+++ b/glib/tests/slice-eager-freeing.c
@@ -63,25 +63,6 @@ corruption (void)
return 0;
}
-static inline gpointer
-memchunk_alloc (GMemChunk **memchunkp,
- guint size)
-{
- size = MAX (size, 1);
- if (G_UNLIKELY (!*memchunkp))
- *memchunkp = old_mem_chunk_new ("", size, 4096, G_ALLOC_AND_FREE);
- return old_mem_chunk_alloc (*memchunkp);
-}
-
-static inline void
-memchunk_free (GMemChunk *memchunk,
- gpointer chunk)
-{
- old_mem_chunk_free (memchunk, chunk);
- if (clean_memchunks)
- old_mem_chunk_clean (memchunk);
-}
-
static gpointer
test_sliced_mem_thread (gpointer data)
{
diff --git a/glib/tests/slice-glib.c b/glib/tests/slice-glib.c
index 5fbcf41f30..844d8e1ae4 100644
--- a/glib/tests/slice-glib.c
+++ b/glib/tests/slice-glib.c
@@ -63,25 +63,6 @@ corruption (void)
return 0;
}
-static inline gpointer
-memchunk_alloc (GMemChunk **memchunkp,
- guint size)
-{
- size = MAX (size, 1);
- if (G_UNLIKELY (!*memchunkp))
- *memchunkp = old_mem_chunk_new ("", size, 4096, G_ALLOC_AND_FREE);
- return old_mem_chunk_alloc (*memchunkp);
-}
-
-static inline void
-memchunk_free (GMemChunk *memchunk,
- gpointer chunk)
-{
- old_mem_chunk_free (memchunk, chunk);
- if (clean_memchunks)
- old_mem_chunk_clean (memchunk);
-}
-
static gpointer
test_sliced_mem_thread (gpointer data)
{
diff --git a/glib/tests/slice-malloc.c b/glib/tests/slice-malloc.c
index d554e31b09..5d3b6e6579 100644
--- a/glib/tests/slice-malloc.c
+++ b/glib/tests/slice-malloc.c
@@ -63,25 +63,6 @@ corruption (void)
return 0;
}
-static inline gpointer
-memchunk_alloc (GMemChunk **memchunkp,
- guint size)
-{
- size = MAX (size, 1);
- if (G_UNLIKELY (!*memchunkp))
- *memchunkp = old_mem_chunk_new ("", size, 4096, G_ALLOC_AND_FREE);
- return old_mem_chunk_alloc (*memchunkp);
-}
-
-static inline void
-memchunk_free (GMemChunk *memchunk,
- gpointer chunk)
-{
- old_mem_chunk_free (memchunk, chunk);
- if (clean_memchunks)
- old_mem_chunk_clean (memchunk);
-}
-
static gpointer
test_sliced_mem_thread (gpointer data)
{
diff --git a/glib/tests/slice-slab.c b/glib/tests/slice-slab.c
index 7c2b1aa20f..cee92bf073 100644
--- a/glib/tests/slice-slab.c
+++ b/glib/tests/slice-slab.c
@@ -63,25 +63,6 @@ corruption (void)
return 0;
}
-static inline gpointer
-memchunk_alloc (GMemChunk **memchunkp,
- guint size)
-{
- size = MAX (size, 1);
- if (G_UNLIKELY (!*memchunkp))
- *memchunkp = old_mem_chunk_new ("", size, 4096, G_ALLOC_AND_FREE);
- return old_mem_chunk_alloc (*memchunkp);
-}
-
-static inline void
-memchunk_free (GMemChunk *memchunk,
- gpointer chunk)
-{
- old_mem_chunk_free (memchunk, chunk);
- if (clean_memchunks)
- old_mem_chunk_clean (memchunk);
-}
-
static gpointer
test_sliced_mem_thread (gpointer data)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]