1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Aidan MacDonald 2022-09-26 15:20:00 +01:00
parent 4f9e4ddb99
commit eaccdeeae2
3 changed files with 3 additions and 25 deletions

View file

@ -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)
{