November 06, 2015 [phobos] [D-Programming-Language/phobos] e1774b: std.datetime: Remove redundant try/catch around Ge... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/phobos Commit: e1774b6f6915ccc42b04352033df0f39c7522bd1 https://github.com/D-Programming-Language/phobos/commit/e1774b6f6915ccc42b04352033df0f39c7522bd1 Author: Vladimir Panteleev <vladimir@thecybershadow.net> Date: 2015-11-04 (Wed, 04 Nov 2015) Changed paths: M std/datetime.d Log Message: ----------- std.datetime: Remove redundant try/catch around GetTimeZoneInformation GetTimeZoneInformation is a Windows API function, and thus will never throw a D exception. Presumably, at the time this code was written, it was not marked as nothrow. However, instead of fixing the function's signature, the code contained try/catch blocks with messages such as assert(0, "The impossible happened. GetTimeZoneInformation() threw."); Commit: 527eeb6e0614c4e0f8e01802d50b0772e306c355 https://github.com/D-Programming-Language/phobos/commit/527eeb6e0614c4e0f8e01802d50b0772e306c355 Author: JakobOvrum <JakobOvrum@users.noreply.github.com> Date: 2015-11-06 (Fri, 06 Nov 2015) Changed paths: M std/datetime.d Log Message: ----------- Merge pull request #3796 from CyberShadow/pull-20151104-214649 std.datetime: Remove redundant try/catch around GetTimeZoneInformation Compare: https://github.com/D-Programming-Language/phobos/compare/d8f6cce7edd3...527eeb6e0614 |
Copyright © 1999-2021 by the D Language Foundation