From: vrana Date: Wed, 30 May 2012 23:04:45 +0000 (-0700) Subject: Remove unnecessary usages of newv() X-Git-Tag: conduit-6~287 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=5aef9383914cd4c3be84b450677edea96c69db61;p=arcanist.git Remove unnecessary usages of newv() Test Plan: arc lint Reviewers: epriestley Reviewed By: epriestley CC: aran, Koolvin Differential Revision: https://secure.phabricator.com/D2611 --- diff --git a/src/repository/api/base/ArcanistRepositoryAPI.php b/src/repository/api/base/ArcanistRepositoryAPI.php index 84149092..30f77db7 100644 --- a/src/repository/api/base/ArcanistRepositoryAPI.php +++ b/src/repository/api/base/ArcanistRepositoryAPI.php @@ -73,13 +73,13 @@ abstract class ArcanistRepositoryAPI { // check if we're in an svn working copy list($err) = exec_manual('svn info'); if (!$err) { - $api = newv('ArcanistSubversionAPI', array($root)); + $api = new ArcanistSubversionAPI($root); $api->workingCopyIdentity = $working_copy; return $api; } if (Filesystem::pathExists($root.'/.hg')) { - $api = newv('ArcanistMercurialAPI', array($root)); + $api = new ArcanistMercurialAPI($root); $api->workingCopyIdentity = $working_copy; return $api; } @@ -92,7 +92,7 @@ abstract class ArcanistRepositoryAPI { "is '{$git_root}'. Move '.arcconfig' file to the working copy root."); } - $api = newv('ArcanistGitAPI', array($root)); + $api = new ArcanistGitAPI($root); $api->workingCopyIdentity = $working_copy; return $api; }