Update src/feature_detection.cpp

Code cleanup