From: David Mulder Date: Wed, 8 Jul 2020 20:50:27 +0000 (-0600) Subject: gpo: Remove unused gp_ext_setter code X-Git-Tag: talloc-2.3.2~920 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d512b1a4bd161431a498a6dab64fae49f77dfcf2;p=thirdparty%2Fsamba.git gpo: Remove unused gp_ext_setter code Signed-off-by: David Mulder Reviewed-by: Douglas Bagnall Autobuild-User(master): David Mulder Autobuild-Date(master): Thu Aug 6 18:01:49 UTC 2020 on sn-devel-184 --- diff --git a/python/samba/gp_sec_ext.py b/python/samba/gp_sec_ext.py index cdc45360a00..5e230f73c3c 100644 --- a/python/samba/gp_sec_ext.py +++ b/python/samba/gp_sec_ext.py @@ -16,7 +16,7 @@ # along with this program. If not, see . import os.path -from samba.gpclass import gp_ext_setter, gp_inf_ext +from samba.gpclass import gp_inf_ext from samba.auth import system_session from samba.compat import get_string try: diff --git a/python/samba/gpclass.py b/python/samba/gpclass.py index 3efb6390381..b100f87ff10 100644 --- a/python/samba/gpclass.py +++ b/python/samba/gpclass.py @@ -322,37 +322,6 @@ class gp_ext(object): return {} -class gp_ext_setter(object): - __metaclass__ = ABCMeta - - def __init__(self, logger, gp_db, lp, creds, attribute, val): - self.logger = logger - self.attribute = attribute - self.val = val - self.lp = lp - self.creds = creds - self.gp_db = gp_db - - def explicit(self): - return self.val - - def update_samba(self): - (upd_sam, value) = self.mapper().get(self.attribute) - upd_sam(value()) - - @abstractmethod - def mapper(self): - pass - - def delete(self): - upd_sam, _ = self.mapper().get(self.attribute) - upd_sam(self.val) - - @abstractmethod - def __str__(self): - pass - - class gp_inf_ext(gp_ext): def read(self, data_file): policy = open(data_file, 'rb').read()