mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
devices: disk: Drop dead code
The way the previous block is structured, this condition will never trigger Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
01ccaf03be
commit
5d643f8fd9
@ -264,15 +264,10 @@ class DeviceDisk(Device):
|
||||
num -= amt
|
||||
digits.insert(0, amt)
|
||||
|
||||
seen_valid = False
|
||||
gen_t = ""
|
||||
for digit in digits:
|
||||
if digit == 0:
|
||||
if not seen_valid:
|
||||
continue
|
||||
digit = 1
|
||||
|
||||
seen_valid = True
|
||||
continue
|
||||
gen_t += "%c" % (ord('a') + digit - 1)
|
||||
|
||||
return gen_t
|
||||
|
Loading…
Reference in New Issue
Block a user