From 5aef9383914cd4c3be84b450677edea96c69db61 Mon Sep 17 00:00:00 2001 From: vrana Date: Wed, 30 May 2012 16:04:45 -0700 Subject: [PATCH] Remove unnecessary usages of newv() Test Plan: arc lint Reviewers: epriestley Reviewed By: epriestley CC: aran, Koolvin Differential Revision: https://secure.phabricator.com/D2611 --- src/repository/api/base/ArcanistRepositoryAPI.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.43.0