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:
Peter Krempa 2020-10-02 10:28:51 +02:00
parent d8a354954a
commit 30ff783a80
3 changed files with 0 additions and 30 deletions

View File

@ -1668,7 +1668,6 @@ virAuthConfigNewData;
virBitmapClearAll;
virBitmapClearBit;
virBitmapClearBitExpand;
virBitmapCopy;
virBitmapCountBits;
virBitmapDataFormat;
virBitmapEqual;

View File

@ -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

View File

@ -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
*/