From d14d3b5cbd3863b6e686522c146b94c4994c4d16 Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Wed, 21 Apr 2021 17:26:36 +0100 Subject: [PATCH] [rs] Remove dead code --- wgpu/src/util/device.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wgpu/src/util/device.rs b/wgpu/src/util/device.rs index 7b6a8400cf..3820fd3864 100644 --- a/wgpu/src/util/device.rs +++ b/wgpu/src/util/device.rs @@ -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();