Remove add_padding
@@ -181,34 +181,6 @@ pub struct CpuTexture {
pub wrap_t: Wrapping,
}
-impl CpuTexture {
- /*///
- /// Adds a padding of default values to the texture.
- /// 'left' number of pixels are added to the left of the original texture, 'right' number of pixels to the right and so on.
- ///
- pub fn add_padding(&mut self, left: u32, right: u32, top: u32, bottom: u32) {
- let channels = self.format.color_channel_count();
- let width = left + self.width + right;
- let height = top + self.height + bottom;
- let mut new_data = vec![T::default(); width as usize * height as usize * channels as usize];
- for x in 0..self.width {
- for y in 0..self.height {
- let x_ = x + left;
- let y_ = y + top;
- let source_index = (y * self.width + x) * channels;
- let dest_index = (y_ * width + x_) * channels;
- for i in 0..channels {
- new_data[(dest_index + i) as usize] =
- self.data[(source_index + i) as usize].clone();
- }
- }
- }
- self.data = new_data;
- self.width = width;
- self.height = height;
- }*/
-}
-
#[allow(deprecated)]
impl Default for CpuTexture {
fn default() -> Self {
