@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+1 -9
+1 -9
src/view/form/control/PhabricatorRemarkupControl.php
··· 3 3 final class PhabricatorRemarkupControl 4 4 extends AphrontFormTextAreaControl { 5 5 6 - private $disableMacro = false; 7 6 private $disableFullScreen = false; 8 7 private $canPin; 9 8 private $sendOnEnter = false; 10 9 private $remarkupMetadata = array(); 11 - 12 - public function setDisableMacros($disable) { 13 - $this->disableMacro = $disable; 14 - return $this; 15 - } 16 10 17 11 public function setDisableFullScreen($disable) { 18 12 $this->disableFullScreen = $disable; ··· 234 228 ), 235 229 ); 236 230 237 - $can_use_macros = 238 - (!$this->disableMacro) && 239 - (function_exists('imagettftext')); 231 + $can_use_macros = function_exists('imagettftext'); 240 232 241 233 if ($can_use_macros) { 242 234 $can_use_macros = PhabricatorApplication::isClassInstalledForViewer(