Remove unused function from UIComponent