mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
util: virbitmap: Remove virBitmapCopy
The function is now unused. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
d8a354954a
commit
30ff783a80
@ -1668,7 +1668,6 @@ virAuthConfigNewData;
|
||||
virBitmapClearAll;
|
||||
virBitmapClearBit;
|
||||
virBitmapClearBitExpand;
|
||||
virBitmapCopy;
|
||||
virBitmapCountBits;
|
||||
virBitmapDataFormat;
|
||||
virBitmapEqual;
|
||||
|
@ -100,29 +100,6 @@ virBitmapFree(virBitmapPtr bitmap)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* virBitmapCopy:
|
||||
* @dst: destination bitmap
|
||||
* @src: source bitmap
|
||||
*
|
||||
* Copies contents of @src to @dst. @dst must have the same size as @src.
|
||||
* Returns -1 if the size is not the same or 0 on success.
|
||||
*/
|
||||
int
|
||||
virBitmapCopy(virBitmapPtr dst,
|
||||
virBitmapPtr src)
|
||||
{
|
||||
if (dst->nbits != src->nbits) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
memcpy(dst->map, src->map, src->map_len * sizeof(src->map[0]));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* virBitmapSetBit:
|
||||
* @bitmap: Pointer to bitmap
|
||||
|
@ -39,12 +39,6 @@ virBitmapPtr virBitmapNew(size_t size);
|
||||
*/
|
||||
void virBitmapFree(virBitmapPtr bitmap);
|
||||
|
||||
/*
|
||||
* Copy all bits from @src to @dst. The bitmap sizes
|
||||
* must be the same
|
||||
*/
|
||||
int virBitmapCopy(virBitmapPtr dst, virBitmapPtr src);
|
||||
|
||||
/*
|
||||
* Set bit position @b in @bitmap
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user