Skip to content

Commit 102ee22

Browse files
committed
gtk.cfg: Remove pure annotation from g_str_has_prefix/suffix
g_str_has_prefix and g_str_has_suffix are not technically pure because they can log to the console if a precondition fails. This partially reverts commit 7cc7c0b.
1 parent 4b0c239 commit 102ee22

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

cfg/gtk.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5221,7 +5221,6 @@
52215221
<!-- gboolean g_str_has_prefix (const gchar* str, const gchar* prefix); -->
52225222
<!-- gboolean g_str_has_suffix (const gchar* str, const gchar* prefix); -->
52235223
<function name="g_str_has_prefix,g_str_has_suffix">
5224-
<pure/>
52255224
<leak-ignore/>
52265225
<noreturn>false</noreturn>
52275226
<returnValue type="gboolean"/>

test/cfg/gtk.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ void validCode(int argInt, GHashTableIter * hash_table_iter, GHashTable * hash_t
5959
g_string_free(pGStr1, TRUE);
6060

6161
gchar * pGchar1 = g_strconcat("a", "b", NULL);
62-
g_assert_true(g_str_has_prefix(pGchar1, "a"));
63-
g_assert_true(g_str_has_suffix(pGchar1, "b"));
6462
printf("%s", pGchar1);
6563
g_free(pGchar1);
6664

0 commit comments

Comments
 (0)