From a0dc4a15a9eb4167866f1d88d1ff3f6ffe4ec339 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Thu, 15 Nov 2018 16:23:09 +0100 Subject: [PATCH] Remove code mort --- machines/models.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/machines/models.py b/machines/models.py index 81b1738a..a6a1e1ae 100644 --- a/machines/models.py +++ b/machines/models.py @@ -1634,18 +1634,6 @@ class Role(RevMixin, AclMixin, models.Model): verbose_name = _("server role") verbose_name_plural = _("server roles") - @classmethod - def get_instance(cls, roleid, *_args, **_kwargs): - """Get the Role instance with roleid. - - Args: - roleid: The id - - Returns: - The role. - """ - return cls.objects.get(pk=roleid) - @classmethod def interface_for_roletype(cls, roletype): """Return interfaces for a roletype""" @@ -1660,14 +1648,6 @@ class Role(RevMixin, AclMixin, models.Model): machine__interface__role=cls.objects.filter(specific_role=roletype) ) - @classmethod - def get_instance(cls, roleid, *_args, **_kwargs): - """Get the Machine instance with machineid. - :param userid: The id - :return: The user - """ - return cls.objects.get(pk=roleid) - @classmethod def interface_for_roletype(cls, roletype): """Return interfaces for a roletype"""