diff --git a/src/applications/search/engine/PhabricatorApplicationSearchEngine.php b/src/applications/search/engine/PhabricatorApplicationSearchEngine.php --- a/src/applications/search/engine/PhabricatorApplicationSearchEngine.php +++ b/src/applications/search/engine/PhabricatorApplicationSearchEngine.php @@ -713,50 +713,6 @@ /** - * Read a list of project PHIDs from a request in a flexible way. - * - * @param AphrontRequest Request to read user PHIDs from. - * @param string Key to read in the request. - * @return list List of projet PHIDs and selector functions. - * @task read - */ - protected function readProjectsFromRequest(AphrontRequest $request, $key) { - $list = $this->readListFromRequest($request, $key); - - $phids = array(); - $slugs = array(); - $project_type = PhabricatorProjectProjectPHIDType::TYPECONST; - foreach ($list as $item) { - $type = phid_get_type($item); - if ($type == $project_type) { - $phids[] = $item; - } else { - if (PhabricatorTypeaheadDatasource::isFunctionToken($item)) { - // If this is a function, pass it through unchanged; we'll evaluate - // it later. - $phids[] = $item; - } else { - $slugs[] = $item; - } - } - } - - if ($slugs) { - $projects = id(new PhabricatorProjectQuery()) - ->setViewer($this->requireViewer()) - ->withSlugs($slugs) - ->execute(); - foreach ($projects as $project) { - $phids[] = $project->getPHID(); - } - $phids = array_unique($phids); - } - - return $phids; - } - - - /** * Read a list of subscribers from a request in a flexible way. * * @param AphrontRequest Request to read PHIDs from. @@ -849,19 +805,6 @@ return $list; } - protected function readDateFromRequest( - AphrontRequest $request, - $key) { - - $value = AphrontFormDateControlValue::newFromRequest($request, $key); - - if ($value->isEmpty()) { - return null; - } - - return $value->getDictionary(); - } - protected function readBoolFromRequest( AphrontRequest $request, $key) {