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

Commit

Permalink
Merge pull request #1004 from jmdavis/clear
Browse files Browse the repository at this point in the history
Fix deprecation comment on clear.
  • Loading branch information
dnadlinger committed Oct 29, 2014
2 parents 890997d + 4385b33 commit ead53a3
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 ead53a3

Please sign in to comment.