D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21700 - Long deprecated Stopwatch std.datetime is still not removed
Summary: Long deprecated Stopwatch std.datetime is still not removed
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2021-03-11 04:36 UTC by Andrej Mitrovic
Modified: 2021-03-12 12:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrej Mitrovic 2021-03-11 04:36:18 UTC
-----
// @@@DEPRECATED_2018-10@@@
/*
    $(RED The old benchmarking functionality in std.datetime (which uses
          $(REF TickDuration,core,time)) has been deprecated. Use what's in
          std.datetime.stopwatch instead. It uses $(REF MonoTime,core,time) and
          $(REF Duration,core,time). See
          $(REF AutoStart,std,datetime,stopwatch). This symbol will be removed
          from the documentation in October 2018 and fully removed from Phobos
          in October 2019.)

    Used by StopWatch to indicate whether it should start immediately upon
    construction.

    If set to `AutoStart.no`, then the stopwatch is not started when it is
    constructed.

    Otherwise, if set to `AutoStart.yes`, then the stopwatch is started when
    it is constructed.
  */
deprecated("To be removed after 2.094. Use std.datetime.stopwatch.AutoStart instead.")
alias AutoStart = Flag!"autoStart";
-----

This is still present in 2.095, and it's been planned to be removed over two years ago. Can we just remove it already?
Comment 1 Dlang Bot 2021-03-12 10:54:49 UTC
@berni44 created dlang/phobos pull request #7844 "Fix Issue 21700 - Long deprecated Stopwatch std.datetime is still not removed" fixing this issue:

- Fix Issue 21700 - Long deprecated Stopwatch std.datetime is still not removed

https://github.com/dlang/phobos/pull/7844
Comment 2 Dlang Bot 2021-03-12 12:05:18 UTC
dlang/phobos pull request #7844 "Fix Issue 21700 - Long deprecated Stopwatch std.datetime is still not removed" was merged into master:

- 59563f17fcd91a03bb7cf312917626d2026d453b by berni44:
  Fix Issue 21700 - Long deprecated Stopwatch std.datetime is still not removed

https://github.com/dlang/phobos/pull/7844