BaseTools: UPT: remove unused variable and inaccessible code.