Skip to content

Commit 67935b5

Browse files
committed
Remove useless comments
1 parent 3a5ab2b commit 67935b5

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

contentscript.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ for (var i = 0; i < rows.length; ++i) {
9494
if (file_line_pattern.test(cell.className)) {
9595
var line = cell.textContent;
9696

97+
/////////////
98+
// C++ BIT //
99+
/////////////
97100
// check line has a C++ #include, if so pull the header path
98101
// ensure it has a ".h", and a "/", to exclude STL
99102
if (test_cpp_include(line)) {
@@ -127,19 +130,14 @@ for (var i = 0; i < rows.length; ++i) {
127130
var srcPath = link.replace("interface", "src");
128131
var cppSrc = srcPath.replace(".h", ".cpp");
129132
var ccSrc = srcPath.replace(".h", ".cc");
130-
check_URL_add_link(cppSrc, cell);
133+
// try .cc first, if not try cpp
131134
check_URL_add_link(ccSrc, cell);
132-
// console.log(a);
133-
// if (check_URL_add_link(cppSrc))
134-
// srcPath = cppSrc;
135-
// else if (check_URL_add_link(ccSrc))
136-
// srcPath = ccSrc;
137-
// if (srcPath != link.replace("interface", "src")) {
138-
// var srcText = "&nbsp&nbsp&nbsp<a href=\""+srcPath+"\" style=\"text-decoration:underline;\">[goto src]</a>";
139-
// cell.innerHTML = cell.innerHTML.concat(srcText);
140-
// }
135+
check_URL_add_link(cppSrc, cell);
141136
}
142137

138+
////////////////
139+
// PYTHON BIT //
140+
////////////////
143141
// tests for python imports/fragments
144142
var config = test_py_import(line);
145143
// if we have a valid python config, turn it into a path

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"https://www.github.com/*/cmssw/*",
99
"https://github.com/*/cmssw/*"
1010
],
11-
"js": ["contentscript.js"]
11+
"js": ["contentscript.js"],
1212
// "js": ["contentscript.js", "jquery-2.1.1.min.js"]
13-
// "run_at": "document_end" // pay attention to this line
13+
"run_at": "document_end" // pay attention to this line
1414
}
1515
],
1616
"manifest_version": 2

0 commit comments

Comments
 (0)