A former police officer would have been dismissed without notice if he had not resigned following gross misconduct, a hearing has ruled.