Deprecating useless Util.getPastTimeString.

This commit is contained in:
Jesse Glick committed 2019-08-26 14:15:20 -04:00
1 parent 05f68b4779
commit ebd12e727e
23 files changed
+13 -47

No files matched your search

+3 -1
View File
@@ -753,10 +753,12 @@ public class Util {
/**
* Get a human readable string representing strings like "xxx days ago",
* which should be used to point to the occurrence of an event in the past.
* @deprecated Actually identical to {@link #getTimeSpanString}, does not add {@code ago}.
*/
@Deprecated
@Nonnull
public static String getPastTimeString(long duration) {
return Messages.Util_pastTime(getTimeSpanString(duration));
return getTimeSpanString(duration);
}