Remove some unused functions as reported by cppcheck (#4743)

This commit is contained in:
Rong Ou
2019-08-06 23:42:33 -07:00
committed by Jiaming Yuan
parent 3e2c472944
commit 602484e19f
5 changed files with 3 additions and 23 deletions

View File

@@ -146,10 +146,6 @@ class LambdaRankObj : public ObjFunction {
inline static bool CmpPred(const ListEntry &a, const ListEntry &b) {
return a.pred > b.pred;
}
// comparator by label
inline static bool CmpLabel(const ListEntry &a, const ListEntry &b) {
return a.label > b.label;
}
};
/*! \brief a pair in the lambda rank */
struct LambdaPair {