summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Peveler <matt.peveler@gmail.com>2022-02-23 20:38:46 -0500
committerMatthew Peveler <matt.peveler@gmail.com>2022-02-23 20:38:46 -0500
commit9b494802b25b60a5d21976f45e21380ed7b78766 (patch)
treee33652619471db5e5b0e261d4e6b848e1b9f40e0
parent379d9677ca2c204604e209e1c67df7cbb597a6ea (diff)
downloadasciidoc-py3-9b494802b25b60a5d21976f45e21380ed7b78766.tar.gz
Remove unused a2x function
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
-rw-r--r--asciidoc/a2x.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/asciidoc/a2x.py b/asciidoc/a2x.py
index 5bccbc4..4348f1e 100644
--- a/asciidoc/a2x.py
+++ b/asciidoc/a2x.py
@@ -297,26 +297,6 @@ def find_resources(files, tagname, attrname, filter=None):
return result
-# NOT USED.
-def copy_files(files, src_dir, dst_dir):
- '''
- Copy list of relative file names from src_dir to dst_dir.
- '''
- for filename in files:
- filename = os.path.normpath(filename)
- if os.path.isabs(filename):
- continue
- src = os.path.join(src_dir, filename)
- dst = os.path.join(dst_dir, filename)
- if not os.path.exists(dst):
- if not os.path.isfile(src):
- warning('missing file: %s' % src)
- continue
- dstdir = os.path.dirname(dst)
- shell_makedirs(dstdir)
- shell_copy(src, dst)
-
-
def find_files(path, pattern):
'''
Return list of file names matching pattern in directory path.