Skip to content

Commit 33aa395

Browse files
author
epriestley
committedMay 27, 2014
Delete some junko garbage
Summary: We haven't needed this for like three years, so we probably won't ever need it. It's in history if we do. Test Plan: thought long and hard Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D9311
1 parent 1daa0aa commit 33aa395

File tree

1 file changed

+0
-55
lines changed

1 file changed

+0
-55
lines changed
 

‎src/aphront/console/plugin/DarkConsoleErrorLogPlugin.php

-55
Original file line numberDiff line numberDiff line change
@@ -99,58 +99,3 @@ public function renderPanel() {
9999
));
100100
}
101101
}
102-
103-
/*
104-
$data = $this->getData();
105-
if (!$data) {
106-
return
107-
<x:frag>
108-
<div class="mu">No errors.</div>
109-
</x:frag>;
110-
}
111-
112-
$markup = <table class="LConsoleErrors" />;
113-
$alt = false;
114-
foreach ($data as $error) {
115-
$row = <tr class={$alt ? 'alt' : null} />;
116-
117-
$text = $error['error'];
118-
$text = preg_replace('/\(in .* on line \d+\)$/', '', trim($text));
119-
120-
$trace = $error['trace'];
121-
$trace = explode("\n", $trace);
122-
if (!$trace) {
123-
$trace = array('unknown@0@unknown');
124-
}
125-
126-
foreach ($trace as $idx => $traceline) {
127-
list($file, $line, $where) = array_merge(
128-
explode('@', $traceline),
129-
array('?', '?', '?'));
130-
if ($where == 'DarkConsole->addError' ||
131-
$where == 'debug_rlog') {
132-
unset($trace[$idx]);
133-
}
134-
}
135-
136-
$row->appendChild(<th rowspan={count($trace)}>{$text}</th>);
137-
138-
foreach ($trace as $traceline) {
139-
list($file, $line, $where) = array_merge(
140-
explode('@', $traceline),
141-
array('?', '?', '?'));
142-
$row->appendChild(<td>{$file}:{$line}</td>);
143-
$row->appendChild(<td>{$where}()</td>);
144-
$markup->appendChild($row);
145-
$row = <tr class={$alt ? 'alt' : null} />;
146-
}
147-
148-
$alt = !$alt;
149-
}
150-
151-
return
152-
<x:frag>
153-
<h1>Errors</h1>
154-
<div class="LConsoleErrors">{$markup}</div>
155-
</x:frag>;
156-
*/

0 commit comments

Comments
 (0)
Failed to load comments.