York man pleads no contest to delivery, child abuse