Remove unused code.  Closes CID #1258580
Cleanup and formatting in realms.c
Trim back the build matrix for coverity