]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
xfs_scrub_all: remove dead code
authorDarrick J. Wong <djwong@kernel.org>
Thu, 7 May 2026 22:11:43 +0000 (15:11 -0700)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 13 May 2026 10:30:43 +0000 (12:30 +0200)
Remove the unused backtick() function.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
scrub/xfs_scrub_all.py.in

index dbb6c36e467d3f0343f7ad88ba9d0cab7ab15e95..3f618587de8b253e047431a3b80f2471bb18173f 100644 (file)
@@ -69,12 +69,6 @@ def find_mounts():
 
        return fs
 
-def backtick(cmd):
-       '''Generator function that yields lines of a program's stdout.'''
-       p = subprocess.Popen(cmd, stdout = subprocess.PIPE)
-       for line in TextIOWrapper(p.stdout, encoding="utf-8"):
-               yield line.strip()
-
 def remove_killfunc(killfuncs, fn):
        '''Ensure fn is not in killfuncs.'''
        try: