Removing unused variables from cuda_filter