Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Fix deprecation comment on clear.
Browse files Browse the repository at this point in the history
It doesn't follow the format that those comments normally take, and the
date isn't good, because while it was committed in March of 2014, it
wasn't actually get released until mid-August with 2.066, and it really
needs to be deprecated for _at least_ 6 months, if not longer, before
we remove it.
  • Loading branch information
jmdavis committed Oct 29, 2014
1 parent 890997d commit 4385b33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/object.di
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,7 @@ inout(V) get(K, V)(inout(V[K])* aa, K key, lazy inout(V) defaultValue)
return (*aa).get(key, defaultValue);
}

// Originally scheduled for deprecation in December 2012.
// Marked 'deprecated' in April 2014. Rescheduled for final deprecation in October 2014.
// Please use destroy instead of clear.
// Explicitly undocumented. It will be removed in March 2015.
deprecated("Please use destroy instead.")
alias clear = destroy;

Expand Down
1 change: 1 addition & 0 deletions src/object_.d
Original file line number Diff line number Diff line change
Expand Up @@ -2367,6 +2367,7 @@ pure nothrow unittest
//testFwdRange(aa.byPair, tuple("a", 1));
}

// Explicitly undocumented. It will be removed in March 2015.
deprecated("Please use destroy instead of clear.")
alias destroy clear;

Expand Down

0 comments on commit 4385b33

Please sign in to comment.