1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-11 15:21:03 +01:00

Remove obsolete "setDisableMacros()" on "PhabricatorRemarkupControl"

Summary:
Ref T13682. This method originated in D4781 and no longer has any callers; remove it.

(I believe this was from an era where macros didn't have to be on their own line to trigger.)

Test Plan: Grepped for method, found no callers.

Maniphest Tasks: T13682

Differential Revision: https://secure.phabricator.com/D21831
This commit is contained in:
epriestley 2022-05-20 10:08:35 -07:00
parent 42876de60d
commit cc44ae32c5

View file

@ -3,17 +3,11 @@
final class PhabricatorRemarkupControl
extends AphrontFormTextAreaControl {
private $disableMacro = false;
private $disableFullScreen = false;
private $canPin;
private $sendOnEnter = false;
private $remarkupMetadata = array();
public function setDisableMacros($disable) {
$this->disableMacro = $disable;
return $this;
}
public function setDisableFullScreen($disable) {
$this->disableFullScreen = $disable;
return $this;
@ -234,9 +228,7 @@ final class PhabricatorRemarkupControl
),
);
$can_use_macros =
(!$this->disableMacro) &&
(function_exists('imagettftext'));
$can_use_macros = function_exists('imagettftext');
if ($can_use_macros) {
$can_use_macros = PhabricatorApplication::isClassInstalledForViewer(