aboutsummaryrefslogtreecommitdiff
path: root/savevm.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-08-29 19:04:47 +0200
committerJuan Quintela <quintela@redhat.com>2012-10-17 18:34:59 +0200
commite5ae97cee4c0ecd252991aa868c6e233ef8c8f35 (patch)
treefc60b4dd1face299a58481fffa51cf2dff8ad793 /savevm.c
parente398d61b4777125f32a99fa49519c5edbb00809b (diff)
savevm: Remove qemu_fseek()
It has no users, and is only half implemented. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'savevm.c')
-rw-r--r--savevm.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/savevm.c b/savevm.c
index cf5f9477df..8a785fc783 100644
--- a/savevm.c
+++ b/savevm.c
@@ -676,27 +676,6 @@ int64_t qemu_ftell(QEMUFile *f)
return f->buf_offset - f->buf_size + f->buf_index;
}
-int64_t qemu_fseek(QEMUFile *f, int64_t pos, int whence)
-{
- if (whence == SEEK_SET) {
- /* nothing to do */
- } else if (whence == SEEK_CUR) {
- pos += qemu_ftell(f);
- } else {
- /* SEEK_END not supported */
- return -1;
- }
- if (f->put_buffer) {
- qemu_fflush(f);
- f->buf_offset = pos;
- } else {
- f->buf_offset = pos;
- f->buf_index = 0;
- f->buf_size = 0;
- }
- return pos;
-}
-
int qemu_file_rate_limit(QEMUFile *f)
{
if (f->rate_limit)