Skip to content

Commit 343b3c6

Browse files
committed
der: remove deprecated SetOf(Vec)::add methods
These were deprecated in v0.7.6, in favor of `insert(_ordered)`. This removes them prior to the v0.8.0 release.
1 parent f362dac commit 343b3c6

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

der/src/asn1/set_of.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,6 @@ where
4848
}
4949
}
5050

51-
/// Add an item to this [`SetOf`].
52-
///
53-
/// Items MUST be added in lexicographical order according to the [`DerOrd`] impl on `T`.
54-
///
55-
/// # Errors
56-
/// If items are added out-of-order or there isn't sufficient space.
57-
#[deprecated(since = "0.7.6", note = "use `insert` or `insert_ordered` instead")]
58-
pub fn add(&mut self, new_elem: T) -> Result<(), Error> {
59-
self.insert_ordered(new_elem)
60-
}
61-
6251
/// Insert an item into this [`SetOf`].
6352
///
6453
/// # Errors
@@ -297,18 +286,6 @@ where
297286
Vec::from_iter(iter).try_into()
298287
}
299288

300-
/// Add an element to this [`SetOfVec`].
301-
///
302-
/// Items MUST be added in lexicographical order according to the
303-
/// [`DerOrd`] impl on `T`.
304-
///
305-
/// # Errors
306-
/// If a sorting error occurred.
307-
#[deprecated(since = "0.7.6", note = "use `insert` or `insert_ordered` instead")]
308-
pub fn add(&mut self, item: T) -> Result<(), Error> {
309-
self.insert_ordered(item)
310-
}
311-
312289
/// Extend a [`SetOfVec`] using an iterator.
313290
///
314291
/// Note: this is an inherent method instead of an impl of the [`Extend`] trait in order to

0 commit comments

Comments
 (0)