mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0061-v2v-rhv-upload-plugin-Remove-unused-variables.patch

e9bfca
From eb3bcf3bcd791c1a9a8732dfb41514f33a1446d0 Mon Sep 17 00:00:00 2001
e9bfca
From: Nir Soffer <nirsof@gmail.com>
e9bfca
Date: Tue, 26 Jun 2018 01:43:01 +0300
e9bfca
Subject: [PATCH] v2v: rhv-upload-plugin: Remove unused variables
e9bfca
e9bfca
Remove some instances of "transfer" and "transfer_service" that are not
e9bfca
used in current code.
e9bfca
e9bfca
(cherry picked from commit 32ab53cecd78ee5c140f17e5792710698627d265)
e9bfca
---
e9bfca
 v2v/rhv-upload-plugin.py | 4 ----
e9bfca
 1 file changed, 4 deletions(-)
e9bfca
e9bfca
diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py
e9bfca
index 10887c031..5c036c46a 100644
e9bfca
--- a/v2v/rhv-upload-plugin.py
e9bfca
+++ b/v2v/rhv-upload-plugin.py
e9bfca
@@ -263,7 +263,6 @@ def request_failed(h, r, msg):
e9bfca
 def pread(h, count, offset):
e9bfca
     http = h['http']
e9bfca
     transfer = h['transfer']
e9bfca
-    transfer_service = h['transfer_service']
e9bfca
 
e9bfca
     headers = {"Range", "bytes=%d-%d" % (offset, offset+count-1)}
e9bfca
     # Authorization is only needed for old imageio.
e9bfca
@@ -309,7 +308,6 @@ def pwrite(h, buf, offset):
e9bfca
 
e9bfca
 def zero(h, count, offset, may_trim):
e9bfca
     http = h['http']
e9bfca
-    transfer = h['transfer']
e9bfca
 
e9bfca
     # Unlike the trim and flush calls, there is no 'can_zero' method
e9bfca
     # so nbdkit could call this even if the server doesn't support
e9bfca
@@ -371,7 +369,6 @@ def emulate_zero(h, count, offset):
e9bfca
 
e9bfca
 def trim(h, count, offset):
e9bfca
     http = h['http']
e9bfca
-    transfer = h['transfer']
e9bfca
 
e9bfca
     # Construct the JSON request for trimming.
e9bfca
     buf = json.dumps({'op': "trim",
e9bfca
@@ -394,7 +391,6 @@ def trim(h, count, offset):
e9bfca
 
e9bfca
 def flush(h):
e9bfca
     http = h['http']
e9bfca
-    transfer = h['transfer']
e9bfca
 
e9bfca
     # Construct the JSON request for flushing.
e9bfca
     buf = json.dumps({'op': "flush"}).encode()
e9bfca
-- 
3d5c2a
2.17.2
e9bfca