Fix warnings
[pspp-builds.git] / src / language / stats / oneway.c
index 480bbb91379be3dd162c239b03b941b0b5e30ff7..2c401f56270de4c6f97852c300bd583d6ebd6189 100644 (file)
@@ -586,8 +586,7 @@ makeit (const void *aux1, void *aux2 UNUSED)
 
 static void 
 updateit (const void *aux1, void *aux2, void *user_data,
-           const struct ccase *c, enum mv_class exclude,
-           const struct variable *wv)
+         const struct ccase *c, double weight)
 {
   struct descriptive_data *dd = user_data;
 
@@ -597,13 +596,6 @@ updateit (const void *aux1, void *aux2, void *user_data,
 
   struct descriptive_data *dd_total = aux2;
 
-  double weight;
-
-  if ( var_is_value_missing (varp, valx, exclude))
-    return;
-
-  weight = wv != NULL ? case_data (c, wv)->f : 1.0;
-
   moments1_add (dd->mom, valx->f, weight);
   if (valx->f < dd->minimum)
     dd->minimum = valx->f;