Blame SOURCES/0282-font-Remove-grub_font_dup_glyph.patch

fd0330
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
fd0330
From: Zhang Boyang <zhangboyang.id@gmail.com>
fd0330
Date: Fri, 5 Aug 2022 02:13:29 +0800
fd0330
Subject: [PATCH] font: Remove grub_font_dup_glyph()
fd0330
fd0330
Remove grub_font_dup_glyph() since nobody is using it since 2013, and
fd0330
I'm too lazy to fix the integer overflow problem in it.
fd0330
fd0330
Signed-off-by: Zhang Boyang <zhangboyang.id@gmail.com>
fd0330
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
fd0330
(cherry picked from commit 25ad31c19c331aaa2dbd9bd2b2e2655de5766a9d)
fd0330
---
fd0330
 grub-core/font/font.c | 14 --------------
fd0330
 1 file changed, 14 deletions(-)
fd0330
fd0330
diff --git a/grub-core/font/font.c b/grub-core/font/font.c
fd0330
index 1fa181d4ca..a115a63b0c 100644
fd0330
--- a/grub-core/font/font.c
fd0330
+++ b/grub-core/font/font.c
fd0330
@@ -1055,20 +1055,6 @@ grub_font_get_glyph_with_fallback (grub_font_t font, grub_uint32_t code)
fd0330
   return best_glyph;
fd0330
 }
fd0330
 
fd0330
-#if 0
fd0330
-static struct grub_font_glyph *
fd0330
-grub_font_dup_glyph (struct grub_font_glyph *glyph)
fd0330
-{
fd0330
-  static struct grub_font_glyph *ret;
fd0330
-  ret = grub_malloc (sizeof (*ret) + (glyph->width * glyph->height + 7) / 8);
fd0330
-  if (!ret)
fd0330
-    return NULL;
fd0330
-  grub_memcpy (ret, glyph, sizeof (*ret)
fd0330
-	       + (glyph->width * glyph->height + 7) / 8);
fd0330
-  return ret;
fd0330
-}
fd0330
-#endif
fd0330
-
fd0330
 /* FIXME: suboptimal.  */
fd0330
 static void
fd0330
 grub_font_blit_glyph (struct grub_font_glyph *target,