Skip to content

Commit

Permalink
Remove dead code for manual pdf cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Feb 26, 2018
1 parent 9ffb753 commit 3e187a4
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions nbconvert/exporters/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ class PDFExporter(LatexExporter):
help="Whether to display the output of latex commands."
).tag(config=True)

temp_file_exts = List(['.aux', '.bbl', '.blg', '.idx', '.log', '.out'],
help="File extensions of temp files to remove after running."
).tag(config=True)

texinputs = Unicode(help="texinputs dir. A notebook's directory is added")
writer = Instance("nbconvert.writers.FilesWriter", args=(), kw={'build_directory': '.'})

Expand Down Expand Up @@ -155,16 +151,6 @@ def log_error(command, out):
self.log.debug(u"%s output: %s\n%s", command[0], command, out)

return self.run_command(self.bib_command, filename, 1, log_error)

def clean_temp_files(self, filename):
"""Remove temporary files created by xelatex/bibtex."""
self.log.info("Removing temporary LaTeX files")
filename = os.path.splitext(filename)[0]
for ext in self.temp_file_exts:
try:
os.remove(filename+ext)
except OSError:
pass

def from_notebook_node(self, nb, resources=None, **kw):
latex, resources = super(PDFExporter, self).from_notebook_node(
Expand Down

0 comments on commit 3e187a4

Please sign in to comment.