From e33f5b785e730a26524967f4cb12ca608b57952a Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Mon, 5 Jan 2015 06:38:37 +1100 Subject: [PATCH] Remove unused `phabricator_on_relative_date` function Summary: This function isn't used. Test Plan: `grep` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11190 --- src/__phutil_library_map__.php | 1 - src/view/viewutils.php | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index ded19e23cf..ec110c2d66 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -3033,7 +3033,6 @@ phutil_register_library_map(array( 'phabricator_datetime' => 'view/viewutils.php', 'phabricator_form' => 'infrastructure/javelin/markup.php', 'phabricator_format_local_time' => 'view/viewutils.php', - 'phabricator_on_relative_date' => 'view/viewutils.php', 'phabricator_relative_date' => 'view/viewutils.php', 'phabricator_time' => 'view/viewutils.php', 'phabricator_time_format' => 'view/viewutils.php', diff --git a/src/view/viewutils.php b/src/view/viewutils.php index df176ed84c..990c811c84 100644 --- a/src/view/viewutils.php +++ b/src/view/viewutils.php @@ -7,10 +7,6 @@ function phabricator_date($epoch, PhabricatorUser $user) { phutil_date_format($epoch)); } -function phabricator_on_relative_date($epoch, $user) { - return phabricator_relative_date($epoch, $user, true); -} - function phabricator_relative_date($epoch, $user, $on = false) { static $today; static $yesterday; -- 2.54.0