]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python: remove unused in_source_tree() function
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Tue, 18 Mar 2025 23:00:02 +0000 (12:00 +1300)
committerRalph Boehme <slow@samba.org>
Sat, 29 Mar 2025 07:23:43 +0000 (07:23 +0000)
We don't use it and don't want non-tests changing their behaviour
based on this kind of thing anyway.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Ralph Boehme <slow@samba.org>
python/samba/__init__.py

index 538237a633194ae0c3d485fa4cdce65a5f9adf34..6bdf65d923dc86eac6d7c511409355255063d198 100644 (file)
@@ -41,15 +41,6 @@ def source_tree_topdir():
     raise RuntimeError("unable to find top level source directory")
 
 
-def in_source_tree():
-    """Return True if we are running from within the samba source tree"""
-    try:
-        topdir = source_tree_topdir()
-    except RuntimeError:
-        return False
-    return True
-
-
 class Ldb(_Ldb):
     """Simple Samba-specific LDB subclass that takes care
     of setting up the modules dir, credentials pointers, etc.