removed unused code from rldm_train.c