@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 some unused code in PhabricatorCalendarEvent

Summary:
Remove unused `private function newDateTimeFromEpoch($epoch)`.
Its last callers were removed in rP3f2f81a1.

Test Plan: Grep the code; run static code analysis.

Reviewers: O1 Blessed Committers, mainframe98

Reviewed By: O1 Blessed Committers, mainframe98

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D26394

-10
-10
src/applications/calendar/storage/PhabricatorCalendarEvent.php
··· 912 912 return $this->newSequenceIndexDateTime($index); 913 913 } 914 914 915 - private function newDateTimeFromEpoch($epoch) { 916 - $datetime = PhutilCalendarAbsoluteDateTime::newFromEpoch($epoch); 917 - 918 - if ($this->getIsAllDay()) { 919 - $datetime->setIsAllDay(true); 920 - } 921 - 922 - return $this->newDateTimeFromDateTime($datetime); 923 - } 924 - 925 915 private function newDateTimeFromDictionary(array $dict) { 926 916 $datetime = PhutilCalendarAbsoluteDateTime::newFromDictionary($dict); 927 917 return $this->newDateTimeFromDateTime($datetime);