| Index: base/time/time.h
|
| diff --git a/base/time/time.h b/base/time/time.h
|
| index 63583aeb1c919602e8535f6f9f7af663261eb17f..399ec826ce375e2adeeb5c8b58b1a9aeef18edb8 100644
|
| --- a/base/time/time.h
|
| +++ b/base/time/time.h
|
| @@ -56,7 +56,6 @@
|
| #include <limits>
|
|
|
| #include "base/base_export.h"
|
| -#include "base/compiler_specific.h"
|
| #include "base/numerics/safe_math.h"
|
| #include "build/build_config.h"
|
|
|
| @@ -520,29 +519,11 @@
|
|
|
| // Converts an exploded structure representing either the local time or UTC
|
| // into a Time class.
|
| - // TODO(maksims): Get rid of these in favor of the methods below when
|
| - // all the callers stop using these ones.
|
| static Time FromUTCExploded(const Exploded& exploded) {
|
| - base::Time time;
|
| - ignore_result(FromUTCExploded(exploded, &time));
|
| - return time;
|
| + return FromExploded(false, exploded);
|
| }
|
| static Time FromLocalExploded(const Exploded& exploded) {
|
| - base::Time time;
|
| - ignore_result(FromLocalExploded(exploded, &time));
|
| - return time;
|
| - }
|
| -
|
| - // Converts an exploded structure representing either the local time or UTC
|
| - // into a Time class. Returns false on a failure when, for example, a day of
|
| - // month is set to 31 on a 28-30 day month.
|
| - static bool FromUTCExploded(const Exploded& exploded,
|
| - Time* time) WARN_UNUSED_RESULT {
|
| - return FromExploded(false, exploded, time);
|
| - }
|
| - static bool FromLocalExploded(const Exploded& exploded,
|
| - Time* time) WARN_UNUSED_RESULT {
|
| - return FromExploded(true, exploded, time);
|
| + return FromExploded(true, exploded);
|
| }
|
|
|
| // Converts a string representation of time to a Time object.
|
| @@ -583,12 +564,8 @@
|
| void Explode(bool is_local, Exploded* exploded) const;
|
|
|
| // Unexplodes a given time assuming the source is either local time
|
| - // |is_local = true| or UTC |is_local = false|. Function returns false on
|
| - // failure and sets |time| to Time(0). Otherwise returns true and sets |time|
|
| - // to non-exploded time.
|
| - static bool FromExploded(bool is_local,
|
| - const Exploded& exploded,
|
| - Time* time) WARN_UNUSED_RESULT;
|
| + // |is_local = true| or UTC |is_local = false|.
|
| + static Time FromExploded(bool is_local, const Exploded& exploded);
|
|
|
| // Converts a string representation of time to a Time object.
|
| // An example of a time string which is converted is as below:-
|
| @@ -600,9 +577,6 @@
|
| static bool FromStringInternal(const char* time_string,
|
| bool is_local,
|
| Time* parsed_time);
|
| -
|
| - // Comparison does not consider |day_of_week| when doing the operation.
|
| - static bool ExplodedMostlyEquals(const Exploded& lhs, const Exploded& rhs);
|
| };
|
|
|
| // static
|
|
|