From f8625ced846e862258961700d324844f5c943505 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 6 Dec 2018 11:10:30 -0500 Subject: [PATCH] Revert "subsys/fb/cfb: Introduce cfb_get_numof_fonts function" This reverts commit c2c293a3e0efa50cbc4af930fc04b94b475a2d3b. Signed-off-by: Anas Nashif --- include/display/cfb.h | 9 --------- subsys/fb/cfb.c | 7 ------- 2 files changed, 16 deletions(-) diff --git a/include/display/cfb.h b/include/display/cfb.h index 3e1d10dc402..6de9bdc5f0a 100644 --- a/include/display/cfb.h +++ b/include/display/cfb.h @@ -151,15 +151,6 @@ int cfb_framebuffer_set_font(struct device *dev, u8_t idx); */ int cfb_get_font_size(struct device *dev, u8_t idx, u8_t *width, u8_t *height); -/** - * @brief Get number of fonts. - * - * @param dev Pointer to device structure for driver instance - * - * @return number of fonts - */ -int cfb_get_numof_fonts(struct device *dev); - /** * @brief Initialize Character Framebuffer. * diff --git a/subsys/fb/cfb.c b/subsys/fb/cfb.c index 755e5b20e40..9e86e528f0f 100644 --- a/subsys/fb/cfb.c +++ b/subsys/fb/cfb.c @@ -283,13 +283,6 @@ int cfb_get_font_size(struct device *dev, u8_t idx, u8_t *width, u8_t *height) return 0; } -int cfb_get_numof_fonts(struct device *dev) -{ - const struct char_framebuffer *fb = &char_fb; - - return fb->numof_fonts; -} - int cfb_framebuffer_init(struct device *dev) { const struct display_driver_api *api = dev->driver_api;