Remove unused preview function