]> git.mdlowis.com Git - proto/labwc.git/commitdiff
font: remove unused font_buffer_update()
authorJohan Malm <jgm323@gmail.com>
Tue, 2 Aug 2022 20:43:44 +0000 (21:43 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 12 Aug 2022 09:16:17 +0000 (11:16 +0200)
include/common/font.h
src/common/font.c

index 0576bc6119e52a9a84635459fb80f7bfbabcfc67..e64dbbac585781ca72ff9c8126d489f333370878 100644 (file)
@@ -32,14 +32,6 @@ int font_width(struct font *font, const char *string);
 void font_buffer_create(struct lab_data_buffer **buffer, int max_width,
        const char *text, struct font *font, float *color, double scale);
 
-/**
- * font_buffer_update - Wrapper around font_buffer_create
- * Only difference is that if given buffer pointer is != NULL
- * wlr_buffer_drop() will be called on the buffer.
- */
-void font_buffer_update(struct lab_data_buffer **buffer, int max_width,
-       const char *text, struct font *font, float *color, double scale);
-
 /**
  * font_finish - free some font related resources
  * Note: use on exit
index fd709dc4221c7c94ce8b5e212eb945ab9f2236df..02cfc197a5e4d92555020e51f14a9c1e4a378f65 100644 (file)
@@ -56,17 +56,6 @@ font_width(struct font *font, const char *string)
        return rectangle.width;
 }
 
-void
-font_buffer_update(struct lab_data_buffer **buffer, int max_width,
-       const char *text, struct font *font, float *color, double scale)
-{
-       if (*buffer) {
-               wlr_buffer_drop(&(*buffer)->base);
-               *buffer = NULL;
-       }
-       font_buffer_create(buffer, max_width, text, font, color, scale);
-}
-
 void
 font_buffer_create(struct lab_data_buffer **buffer, int max_width,
        const char *text, struct font *font, float *color, double scale)