twrp-functions: remove unused functions

Change-Id: I3d072be9ef28f21ade466bc4c42caca8848f7c2a