From 79ae1028fec26e6d73a48818b2ce97b5773e8885 Mon Sep 17 00:00:00 2001 From: Luciana Fujii Pontello Date: Thu, 27 Oct 2016 11:21:14 -0700 Subject: CodeDiff: Remove unused file variables Some files are not used, they can be omitted. --- diff2HtmlCompare.py | 8 +------- templates/diff_template.html | 4 +--- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/diff2HtmlCompare.py b/diff2HtmlCompare.py index 9efc859..b3bd42f 100644 --- a/diff2HtmlCompare.py +++ b/diff2HtmlCompare.py @@ -173,10 +173,7 @@ class CodeDiff(object): diffCssFile="./deps/diff.css" diffJsFile="./deps/diff.js" resetCssFile="./deps/reset.css" - semanticCssFile="./deps/semantic.min.css" - semanticJsFile="./deps/semantic.min.js" jqueryJsFile="./deps/jquery.min.js" - commentJsFile="./deps/comment.js" def __init__(self, fromfile, tofile, fromtxt=None, totxt=None, name=None): @@ -259,17 +256,14 @@ class CodeDiff(object): answers = { "html_title": self.filename, - "reset_css": self.resetCssFile, + "reset_css": self.resetCssFile, "pygments_css": self.pygmentsCssFile, "diff_css": self.diffCssFile, - "semantic_css": self.semanticCssFile, "page_title": self.filename, "original_code": codeContents[0], "modified_code": codeContents[1], "jquery_js": self.jqueryJsFile, - "semantic_js": self.semanticJsFile, "diff_js": self.diffJsFile, - "comment_js": self.commentJsFile, } self.htmlContents = diffTemplate % answers diff --git a/templates/diff_template.html b/templates/diff_template.html index 2f8f90b..df86e70 100644 --- a/templates/diff_template.html +++ b/templates/diff_template.html @@ -11,7 +11,6 @@ modified_code: full html contents of modified file jquery_js: path to jquery.min.js diff_js: path to diff.js - comment_js: path to comment.js --> @@ -74,6 +73,5 @@ </div> <script src="%(jquery_js)s" type="text/javascript"></script> <script src="%(diff_js)s" type="text/javascript"></script> -<!--<script src="%(comment_js)s"></script>--> </body> -</html> \ No newline at end of file +</html> -- cgit