removed code that is never called in samba restore