@@ -60,7 +60,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
60
60
#include " svm.h"
61
61
62
62
#ifndef _LIBSVM_CPP
63
- int libsvm_version = LIBSVM_VERSION;
64
63
typedef float Qfloat;
65
64
typedef signed char schar;
66
65
#ifndef min
@@ -96,7 +95,7 @@ static void print_string_stdout(const char *s)
96
95
fflush (stdout);
97
96
}
98
97
static void (*svm_print_string) (const char *) = &print_string_stdout;
99
- # if 1
98
+
100
99
static void info (const char *fmt,...)
101
100
{
102
101
char buf[BUFSIZ];
@@ -106,9 +105,6 @@ static void info(const char *fmt,...)
106
105
va_end (ap);
107
106
(*svm_print_string)(buf);
108
107
}
109
- #else
110
- static void info(const char *fmt,...) {}
111
- #endif
112
108
#endif
113
109
#define _LIBSVM_CPP
114
110
@@ -2961,12 +2957,6 @@ void PREFIX(free_and_destroy_model)(PREFIX(model)** model_ptr_ptr)
2961
2957
}
2962
2958
}
2963
2959
2964
- void PREFIX (destroy_model)(PREFIX(model)* model_ptr)
2965
- {
2966
- fprintf (stderr," warning: svm_destroy_model is deprecated and should not be used. Please use svm_free_and_destroy_model(PREFIX(model) **model_ptr_ptr)\n " );
2967
- PREFIX (free_and_destroy_model)(&model_ptr);
2968
- }
2969
-
2970
2960
void PREFIX (destroy_param)(svm_parameter* param)
2971
2961
{
2972
2962
free (param->weight_label );
@@ -3095,14 +3085,6 @@ const char *PREFIX(check_parameter)(const PREFIX(problem) *prob, const svm_param
3095
3085
return NULL ;
3096
3086
}
3097
3087
3098
- int PREFIX (check_probability_model)(const PREFIX (model) *model)
3099
- {
3100
- return ((model->param .svm_type == C_SVC || model->param .svm_type == NU_SVC) &&
3101
- model->probA !=NULL && model->probB !=NULL ) ||
3102
- ((model->param .svm_type == EPSILON_SVR || model->param .svm_type == NU_SVR) &&
3103
- model->probA !=NULL );
3104
- }
3105
-
3106
3088
void PREFIX (set_print_string_function)(void (*print_func)(const char *))
3107
3089
{
3108
3090
if (print_func == NULL )
0 commit comments