Revert "Update loc_cfg.cpp"

This reverts commit bb1f46776d48acbb51f50e0a39a3353e9327744a.