Cleanup unused and duplicates

This commit is contained in:
Julien Duponchelle committed 2015-11-09 12:14:25 +01:00
1 parent 58d2a5d4b0
commit 1248584841
12 files changed
+9 -53

No files matched your search

-8
View File
@@ -479,14 +479,6 @@ class Dynamips(BaseManager):
yield from nio.create()
return nio
@asyncio.coroutine
def ghost_ios_support(self, vm):
ghost_ios_support = self.config.get_section_config("Dynamips").getboolean("ghost_ios_support", True)
if ghost_ios_support:
with (yield from Dynamips._ghost_ios_lock):
yield from self._set_ghost_ios(vm)
@asyncio.coroutine
def _set_ghost_ios(self, vm):
"""
-2
View File
@@ -19,8 +19,6 @@
Base interface for NIOs.
"""
import uuid
class NIO(object):
-4
View File
@@ -143,10 +143,6 @@ class Project:
if path != self._path and self.is_local() is False:
raise aiohttp.web.HTTPForbidden(text="You are not allowed to modify the project directory location")
old_path = None
if hasattr(self, "_path"):
old_path = self._path
self._path = path
self._update_temporary_file()
-1
View File
@@ -1454,7 +1454,6 @@ class QemuVM(BaseVM):
if self._run_with_kvm(self.qemu_path, self._options):
command.extend(["-enable-kvm"])
command.extend(["-boot", "order={}".format(self._boot_priority)])
disk_options = yield from self._disk_options()
cdrom_option = self._cdrom_option()
command.extend(cdrom_option)
command.extend((yield from self._disk_options()))