From a022a783ce90d26ddd549498587fcdf2f7d9a5bb Mon Sep 17 00:00:00 2001 From: Tianqi Chen Date: Mon, 7 Apr 2014 16:25:21 -0700 Subject: [PATCH] Update xgboost_utils.h --- utils/xgboost_utils.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/utils/xgboost_utils.h b/utils/xgboost_utils.h index ab07bacc7..7c0e53f2e 100644 --- a/utils/xgboost_utils.h +++ b/utils/xgboost_utils.h @@ -62,16 +62,6 @@ namespace xgboost{ } return fp; } - - /*! \brief replace fopen, */ - inline FILE *FopenTry(const char *fname, const char *flag){ - FILE *fp = fopen64(fname, flag); - if (fp == NULL){ - fprintf(stderr, "can not open file \"%s\"\n", fname); - exit(-1); - } - return fp; - } }; };