Fix build errors about unused variables
Remove unnecessary LineSearchCondition interface