From eaccdeeae2ff57efe1859ba80b7558b328e16a10 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Mon, 26 Sep 2022 15:20:00 +0100 Subject: lcd: Remove internal function get_viewport() Only the scroll engine calls this, but it's easily replaced by the return value of set_viewport_ex(). Change-Id: I2e2c8234f969bc07c9ff7d864e58551115175e26 --- firmware/drivers/lcd-bitmap-common.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'firmware/drivers/lcd-bitmap-common.c') diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c index bd6efa167c..cc42248b2d 100644 --- a/firmware/drivers/lcd-bitmap-common.c +++ b/firmware/drivers/lcd-bitmap-common.c @@ -271,18 +271,6 @@ struct viewport* LCDFN(set_viewport)(struct viewport* vp) return LCDFN(set_viewport_ex)(vp, VP_FLAG_VP_DIRTY); } -struct viewport *LCDFN(get_viewport)(bool *is_default) -{ -#if 0 - *is_default = memcmp(LCDFN(current_viewport), - &default_vp, sizeof(struct viewport)) == 0; -#else - *is_default = LCDFN(current_viewport) == &default_vp; -#endif - - return LCDFN(current_viewport); -} - void LCDFN(update_viewport)(void) { -- cgit v1.2.3