From 65add94bfda50fd223e30191b535a008eb2f4fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Sun, 6 Aug 2023 11:23:19 +0200 Subject: [PATCH] Remove unused meta_rectangle_edge_to_string Unused since 52bc675fcb84 ("introspection: remove --allow-unprefixed") (if ever used at all). Part-of: --- src/core/boxes-private.h | 2 -- src/core/boxes.c | 18 ------------------ 2 files changed, 20 deletions(-) diff --git a/src/core/boxes-private.h b/src/core/boxes-private.h index 6a9fbe11c..2f92d204d 100644 --- a/src/core/boxes-private.h +++ b/src/core/boxes-private.h @@ -62,8 +62,6 @@ char* meta_rectangle_to_string (const MetaRectangle *rect, char* meta_rectangle_region_to_string (GList *region, const char *separator_string, char *output); -char* meta_rectangle_edge_to_string (const MetaEdge *edge, - char *output); char* meta_rectangle_edge_list_to_string ( GList *edge_list, const char *separator_string, diff --git a/src/core/boxes.c b/src/core/boxes.c index d2143144c..42c1374b8 100644 --- a/src/core/boxes.c +++ b/src/core/boxes.c @@ -97,24 +97,6 @@ meta_rectangle_region_to_string (GList *region, return output; } -char* -meta_rectangle_edge_to_string (const MetaEdge *edge, - char *output) -{ - /* 25 chars: 2 commas, space, plus, trailing \0 + 5 for each digit. - * Should be more than enough space. Note that of this space, the - * trailing \0 will be overwritten for all but the last rectangle. - * - * Plus 2 for parenthesis, 4 for 2 more numbers, 2 more commas, and - * 2 more spaces, for a total of 10 more. - */ - g_snprintf (output, EDGE_LENGTH, "[%d,%d +%d,%d], %2d, %2d", - edge->rect.x, edge->rect.y, edge->rect.width, edge->rect.height, - edge->side_type, edge->edge_type); - - return output; -} - char* meta_rectangle_edge_list_to_string (GList *edge_list, const char *separator_string,