Ensure layout is deleted before reuse. Cppcheck.
Remove unused code, probable copy/paste error when importing scans on the commandline with mythtv-setup. Cppcheck