summaryrefslogtreecommitdiff
path: root/dix/inpututils.c
diff options
context:
space:
mode:
Diffstat (limited to 'dix/inpututils.c')
-rw-r--r--dix/inpututils.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/dix/inpututils.c b/dix/inpututils.c
index 9b4f10834..2877804d6 100644
--- a/dix/inpututils.c
+++ b/dix/inpututils.c
@@ -527,31 +527,6 @@ valuator_mask_unset(ValuatorMask *mask, int valuator)
}
}
-
-/**
- * Copy the valuator data from the given mask and return it as one closed
- * array (i.e., with holes where the masks are unset.
- * If valuators_in is not NULL, the valuator data will be copied into
- * valuators_in. The caller is responsible to allocate enough memory.
- *
- * Otherwise, memory is allocated and returned.
- */
-int*
-valuator_mask_copy_valuators(const ValuatorMask *mask, int *valuators_in)
-{
- int *valuators;
-
- if (!valuators_in)
- valuators = calloc(valuator_mask_size(mask), sizeof(int));
- else
- valuators = valuators_in;
-
- memcpy(valuators, mask->valuators,
- valuator_mask_size(mask) * sizeof(int));
-
- return valuators;
-}
-
void
valuator_mask_copy(ValuatorMask *dest, const ValuatorMask *src)
{