network: Drop dead code in pretty_format_mode

There isn't any XML that hits this case that I can find.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-08-21 11:53:28 -04:00
parent 766d7c47c3
commit 045c8c108d
1 changed files with 1 additions and 5 deletions

View File

@ -173,10 +173,6 @@ class vmmNetwork(vmmLibvirtObject):
desc = _("Routed network")
else:
modestr = mode.capitalize()
if dev:
desc = (_("%(mode)s to %(device)s") %
{"mode": modestr, "device": dev})
else:
desc = _("%s network") % modestr
desc = _("%s network") % modestr
return desc