mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-06 11:58:30 +01:00
Remove two unused SearchEngine methods
Summary: Ref T11326. These are last-generation and neither of these have callsites anymore. (I nuked these since I'm trying to simplify date handling.) Test Plan: Grepped for callsites. Reviewers: chad Reviewed By: chad Maniphest Tasks: T11326 Differential Revision: https://secure.phabricator.com/D16301
This commit is contained in:
parent
893edf9d95
commit
1c33b70c66
1 changed files with 0 additions and 57 deletions
|
@ -712,50 +712,6 @@ abstract class PhabricatorApplicationSearchEngine extends Phobject {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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<phid> 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.
|
* Read a list of subscribers from a request in a flexible way.
|
||||||
*
|
*
|
||||||
|
@ -849,19 +805,6 @@ abstract class PhabricatorApplicationSearchEngine extends Phobject {
|
||||||
return $list;
|
return $list;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function readDateFromRequest(
|
|
||||||
AphrontRequest $request,
|
|
||||||
$key) {
|
|
||||||
|
|
||||||
$value = AphrontFormDateControlValue::newFromRequest($request, $key);
|
|
||||||
|
|
||||||
if ($value->isEmpty()) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $value->getDictionary();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function readBoolFromRequest(
|
protected function readBoolFromRequest(
|
||||||
AphrontRequest $request,
|
AphrontRequest $request,
|
||||||
$key) {
|
$key) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue