Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14476758
D12290.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12290.diff
View Options
diff --git a/src/parser/aast/api/AASTNodeList.php b/src/parser/aast/api/AASTNodeList.php
--- a/src/parser/aast/api/AASTNodeList.php
+++ b/src/parser/aast/api/AASTNodeList.php
@@ -9,20 +9,6 @@
protected function __construct() {}
- public function getDescription() {
- if (empty($this->list)) {
- return pht('an empty node list');
- }
-
- $desc = array();
- $desc[] = pht('a list of %s nodes:', new PhutilNumber(count($this->list)));
- foreach ($this->list as $node) {
- $desc[] = ' '.$node->getDescription().';';
- }
-
- return implode("\n", $desc);
- }
-
protected function newList(array $nodes) {
return AASTNodeList::newFromTreeAndNodes($this->tree, $nodes);
}
diff --git a/src/parser/aast/api/AASTTree.php b/src/parser/aast/api/AASTTree.php
--- a/src/parser/aast/api/AASTTree.php
+++ b/src/parser/aast/api/AASTTree.php
@@ -151,23 +151,6 @@
return $this->stream;
}
- public function renderAsText() {
- return $this->executeRenderAsText(array($this->getRootNode()), 0);
- }
-
- protected function executeRenderAsText($list, $depth) {
- $return = '';
- foreach ($list as $node) {
- if ($depth) {
- $return .= str_repeat(' ', $depth);
- }
- $return .= $node->getDescription()."\n";
- $return .= $this->executeRenderAsText($node->getChildren(), $depth + 1);
- }
- return $return;
- }
-
-
public function getOffsetToLineNumberMap() {
if ($this->lineMap === null) {
$src = $this->rawSource;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 29, 7:51 AM (9 h, 9 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6941849
Default Alt Text
D12290.diff (1 KB)
Attached To
Mode
D12290: Remove unused `AASTTree::renderAsText` methods
Attached
Detach File
Event Timeline
Log In to Comment