Delete unused code in clustering