mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

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