From 0085ad6df8c85e64768ec2799e957184366807f9 Mon Sep 17 00:00:00 2001 From: Erik Olof Gunnar Andersson Date: Fri, 17 Nov 2023 11:51:34 -0800 Subject: [PATCH] Remove unused base functions Change-Id: I82d41bc2cda20f36a98459165182dec9aecfb6cf --- designate/objects/base.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/designate/objects/base.py b/designate/objects/base.py index f1670c822..1677d1a82 100644 --- a/designate/objects/base.py +++ b/designate/objects/base.py @@ -64,9 +64,6 @@ class DesignateObject(base.VersionedObject): def __repr__(self): return self._make_obj_str(self.to_dict()) - def save(self, context): - pass - def _obj_check_relation(self, name): if name in self.fields: if hasattr(self.fields.get(name), 'objname'): @@ -188,10 +185,6 @@ class DesignateObject(base.VersionedObject): def obj_cls_from_name(cls, name): return cls.obj_class_from_name(name, '1.0') - @classmethod - def obj_get_schema(cls): - return cls.to_json_schema() - def obj_reset_changes(self, fields=None, recursive=False): """Reset the list of fields that have been changed. @@ -251,20 +244,6 @@ class DesignateObject(base.VersionedObject): def obj_fields(self): return list(self.fields.keys()) + self.obj_extra_fields - @property - def obj_context(self): - return self._context - - @property - def is_valid(self): - """Returns True if the Object is valid.""" - try: - self.validate() - except Exception: - return False - else: - return True - def validate(self): # NOTE(kiall, daidv): We make use of the Object registry here # in order to avoid an impossible circular import.