Skip to content

Commit

Permalink
CA-337772: remove dead code handling qcow files.
Browse files Browse the repository at this point in the history
This has a use before definition error in it anyway so can never
have been used and SonarQube marks this as a blocking issue.

Signed-off-by: Mark Syms <mark.syms@citrix.com>
  • Loading branch information
MarkSymsCtx committed Apr 9, 2020
1 parent aa7accc commit dd737b8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions drivers/VDI.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,7 @@ def VDIMetadataSize(type, virtualsize):

# Segment bitmaps + Page align offsets
size += (size_mb / 2) * 4096
elif type == 'qcow':
# Header + extended header
size = 46 + 17
size = util.roundup(512, size)

# L1 table
size += (size_mb / 2) * 8
size = util.roundup(4096, size)

# L2 tables
size += (size_mb / 2) * 4096
return size

class VDI(object):
Expand Down

0 comments on commit dd737b8

Please sign in to comment.