From 3ccb418b933afe69a0ae309dbba8c047508221c7 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sat, 28 Jan 2012 11:18:33 -0800 Subject: [PATCH] Revert XHP classtag support in arcanist Summary: Revert of D715, which allowed you to put xhp classes into libphutil libraries. We're removing support for XHP in resolving T635. According to @ide, removing this won't break anything. Test Plan: Straight revert. Grepped for methods. Reviewers: btrahan, ide, nh, jungejason Reviewed By: ide CC: aran, epriestley Maniphest Tasks: T635 Differential Revision: https://secure.phabricator.com/D1511 --- .../phutilmodule/PhutilModuleRequirements.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/parser/phutilmodule/PhutilModuleRequirements.php b/src/parser/phutilmodule/PhutilModuleRequirements.php index 779b0179..894932b6 100644 --- a/src/parser/phutilmodule/PhutilModuleRequirements.php +++ b/src/parser/phutilmodule/PhutilModuleRequirements.php @@ -1,7 +1,7 @@ addDeclaration('class', $where, $name); } @@ -99,10 +98,8 @@ class PhutilModuleRequirements { } public function addClassDependency($child, XHPASTNode $where, $name) { - $name = self::mungeXHPClassName($name); if ($child !== null) { if (empty($this->builtins['class'][$name])) { - $child = self::mungeXHPClassName($child); $this->chain['class'][$child] = $name; } } @@ -177,12 +174,4 @@ class PhutilModuleRequirements { ); } - private static function mungeXHPClassName($name) { - if (strlen($name) && $name[0] == ':') { - // XHP's semantic actions munge element names without a preceding colon. - $name = substr($name, 1); - return 'xhp_'.str_replace(array(':', '-'), array('__', '_'), $name); - } - return $name; - } } -- 2.43.0