Add better errors for unresolved attributes, remove unused code

Change-Id: Icf81a81b9ce97b5a5edff85569e6e3da93149436
1 file changed