removed unused variable in sample.c