870: Remove dead code r=kvark a=dhardy

Also, why bother setting the padding bytes to 0?

Co-authored-by: Diggory Hardy <git@dhardy.name>
This commit is contained in:
bors[bot]
2021-04-21 18:04:32 +00:00
committed by GitHub

View File

@@ -52,10 +52,6 @@ impl DeviceExt for crate::Device {
mapped_at_creation: true,
};
let mut map_context = crate::MapContext::new(padded_size);
map_context.initial_range = 0..padded_size;
let buffer = self.create_buffer(&wgt_descriptor);
{
let mut slice = buffer.slice(..).get_mapped_range_mut();