removed unused function
PATCH 1/1 removed unused function
Signed-off-by Frediano Ziglio <[email protected]>
--- block.c | 13 ------------- block.h | 2 -- 2 files changed, 0 insertions(+), 15 deletions(-)
block.c +0 -13
@@ -1108,19 +1108,6 @@ int bdrv_pwrite_sync(BlockDriverState *bs, int64_t offset,return 0 ; } -/* -* Writes to the file and ensures that no writes are reordered across this -* request (acts as a barrier) -* -* Returns 0 on success, -errno in error cases. -*/ -int bdrv_write_sync (BlockDriverState *bs,int64_t sector_num, -const uint8_t *buf,int nb_sectors) -{ -return bdrv_pwrite_sync (bs,BDRV_SECTOR_SIZE * sector_num, - buf,BDRV_SECTOR_SIZE * nb_sectors); -} -/** * Truncate file to 'offset' bytes (needed only for file protocols) */
block.h +0 -2
@@ -85,8 +85,6 @@ int bdrv_pwrite(BlockDriverState *bs, int64_t offset, const void *buf, int count);int bdrv_pwrite_sync (BlockDriverState *bs,int64_t offset,const void *buf,int count); -int bdrv_write_sync (BlockDriverState *bs,int64_t sector_num, -const uint8_t *buf,int nb_sectors);int bdrv_truncate (BlockDriverState *bs,int64_t offset);int64_t bdrv_getlength (BlockDriverState *bs);void bdrv_get_geometry (BlockDriverState *bs,uint64_t *nb_sectors_ptr);
Signature · 1 line
1.7.1