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

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