Remove QubesVM.is_appvm()

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-06-16 21:29:37 +02:00
parent e08ca1ff57
commit b0a7d0c283
No known key found for this signature in database
GPG Key ID: 96ED3C3BA19C3DEE

View File

@ -386,12 +386,6 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
return os.path.join(self.dir_path, 'libvirt.xml')
# XXX I don't know what to do with these; probably should be isinstance(...)
def is_appvm(self):
warnings.warn('vm.is_appvm() is deprecated, use isinstance()',
DeprecationWarning)
import qubes.vm.appvm # pylint: disable=redefined-outer-name
return isinstance(self, qubes.vm.appvm.AppVM)
def is_proxyvm(self):
warnings.warn('vm.is_proxyvm() is deprecated',
DeprecationWarning)