From 7bd3c33ea8cd78e7ee476dc50552665706c7f1d7 Mon Sep 17 00:00:00 2001 From: Asias He Date: Wed, 18 May 2011 16:19:06 +0800 Subject: [PATCH] kvm tools: Remove dead coe disk_image__{read, write}_sector These code are not used anymore. Let's remove it. Signed-off-by: Asias He Signed-off-by: Pekka Enberg --- tools/kvm/include/kvm/disk-image.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tools/kvm/include/kvm/disk-image.h b/tools/kvm/include/kvm/disk-image.h index d43457e74b1d..e6d9e8ef7df7 100644 --- a/tools/kvm/include/kvm/disk-image.h +++ b/tools/kvm/include/kvm/disk-image.h @@ -44,16 +44,6 @@ struct disk_image *disk_image__new(int fd, u64 size, struct disk_image_operation struct disk_image *disk_image__new_readonly(int fd, u64 size, struct disk_image_operations *ops); void disk_image__close(struct disk_image *disk); -static inline int disk_image__read_sector(struct disk_image *disk, u64 sector, void *dst, u32 dst_len) -{ - return disk->ops->read_sector(disk, sector, dst, dst_len); -} - -static inline int disk_image__write_sector(struct disk_image *disk, u64 sector, void *src, u32 src_len) -{ - return disk->ops->write_sector(disk, sector, src, src_len); -} - ssize_t disk_image__read(struct disk_image *disk, u64 sector, const struct iovec *iov, int iovcount); ssize_t disk_image__write(struct disk_image *disk, u64 sector, const struct iovec *iov, int iovcount); -- 2.39.5