mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-02 09:58:24 +01:00
Remove obsolete Dashboard panel methods with no callsites
Summary: Ref T13272. Since the move to EditEngine, these methods have no callsites. Test Plan: `grep` Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13272 Differential Revision: https://secure.phabricator.com/D20484
This commit is contained in:
parent
167f06d3eb
commit
a76e91ea9e
2 changed files with 0 additions and 34 deletions
|
@ -12,13 +12,6 @@ abstract class PhabricatorDashboardPanelType extends Phobject {
|
|||
PhabricatorDashboardPanel $panel,
|
||||
PhabricatorDashboardPanelRenderingEngine $engine);
|
||||
|
||||
public function initializeFieldsFromRequest(
|
||||
PhabricatorDashboardPanel $panel,
|
||||
PhabricatorCustomFieldList $field_list,
|
||||
AphrontRequest $request) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Should this panel pull content in over AJAX?
|
||||
*
|
||||
|
|
|
@ -55,33 +55,6 @@ final class PhabricatorDashboardQueryPanelType
|
|||
);
|
||||
}
|
||||
|
||||
public function initializeFieldsFromRequest(
|
||||
PhabricatorDashboardPanel $panel,
|
||||
PhabricatorCustomFieldList $field_list,
|
||||
AphrontRequest $request) {
|
||||
|
||||
$map = array();
|
||||
if (strlen($request->getStr('engine'))) {
|
||||
$map['class'] = $request->getStr('engine');
|
||||
}
|
||||
|
||||
if (strlen($request->getStr('query'))) {
|
||||
$map['key'] = $request->getStr('query');
|
||||
}
|
||||
|
||||
$full_map = array();
|
||||
foreach ($map as $key => $value) {
|
||||
$full_map["std:dashboard:core:{$key}"] = $value;
|
||||
}
|
||||
|
||||
foreach ($field_list->getFields() as $field) {
|
||||
$field_key = $field->getFieldKey();
|
||||
if (isset($full_map[$field_key])) {
|
||||
$field->setValueFromStorage($full_map[$field_key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function renderPanelContent(
|
||||
PhabricatorUser $viewer,
|
||||
PhabricatorDashboardPanel $panel,
|
||||
|
|
Loading…
Add table
Reference in a new issue