Fix Permission manager merge

Remove the unused getUiContext() function