     unsigned int n_depletants = d_n_depletants[i];
 
     unsigned int overlap_checks = 0;
-    unsigned int n_inserted = 0;
 
     // find the cell this particle should be in
     unsigned int my_cell = computeParticleCell(s_pos_i_old, box, ghost_width,

        atomicAdd(&d_counters->overlap_checks, s_overlap_checks);
        #endif

        if (blockIdx.y == 0 && blockIdx.z == 0)
            {
            // increment number of inserted depletants
            #if (__CUDA_ARCH__ >= 600)

                select*depletant_idx.getNumElements() + depletant_idx(depletant_type_a,depletant_type_b),
                timestep);

            overlap_checks += 2;

            // test depletant position and orientation
