diff --git a/src/array.rs b/src/array.rs index 2a480df..7589472 100644 --- a/src/array.rs +++ b/src/array.rs @@ -13,7 +13,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -use std::mem; use std::ptr; use std::ops::*; @@ -46,12 +45,6 @@ pub trait Array where unsafe { ptr::swap(&mut self[i], &mut self[j]) }; } - /// Replace an element in the array. - #[inline] - fn replace_elem(&mut self, i: usize, src: Self::Element) -> Self::Element { - mem::replace(&mut self[i], src) - } - /// The sum of the elements of the array. fn sum(self) -> Self::Element where Self::Element: Add::Element>;