Index: trunk/extensions/CodeReview/codereview.js |
— | — | @@ -35,7 +35,6 @@ |
36 | 36 | CodeReview.showDiff(data.code.rev.diff); |
37 | 37 | } else { |
38 | 38 | CodeReview.showDiff('Diff load failed. :('); |
39 | | - //alert(dumpWtf(data)); |
40 | 39 | } |
41 | 40 | }; |
42 | 41 | CodeReview.diffTarget = function() { |
— | — | @@ -44,19 +43,3 @@ |
45 | 44 | CodeReview.showDiff = function(diffHtml) { |
46 | 45 | CodeReview.diffTarget().innerHTML = diffHtml; |
47 | 46 | }; |
48 | | - |
49 | | - |
50 | | -function dumpWtf(obj) { |
51 | | - var out = typeof(obj) + ' '; |
52 | | - if (typeof(obj) == 'object' || typeof(obj) == 'array' ) { |
53 | | - out += '('; |
54 | | - for (var i in obj) { |
55 | | - out += i + ': ' + |
56 | | - dumpWtf(obj[i]) + "\n"; |
57 | | - } |
58 | | - out += ')'; |
59 | | - } else { |
60 | | - out += obj; |
61 | | - } |
62 | | - return out; |
63 | | -} |
Index: trunk/extensions/CodeReview/CodeRevisionView.php |
— | — | @@ -249,19 +249,6 @@ |
250 | 250 | } |
251 | 251 | );" ); |
252 | 252 | return "Loading diff..."; |
253 | | - /* |
254 | | - return |
255 | | - Xml::openElement( 'script', |
256 | | - array( |
257 | | - 'src' => $wgServer . $wgScriptPath . '/api.php?' . |
258 | | - wfArrayToCgi( array( |
259 | | - 'action' => 'codediff', |
260 | | - 'repo' => $this->mRepo->getName(), |
261 | | - 'rev' => $this->mRev->getId(), |
262 | | - 'format' => 'json', |
263 | | - 'callback' => 'alert' ) ) ) ) . |
264 | | - "</script>"; |
265 | | - */ |
266 | 253 | } |
267 | 254 | |
268 | 255 | function formatComments() { |