all: remove dead code
This commit is contained in:
parent
a20008d446
commit
8cee61122e
32 changed files with 9 additions and 145 deletions
|
|
@ -20,7 +20,7 @@ use {
|
|||
ash::{
|
||||
extensions::khr::{ExternalFenceFd, ExternalMemoryFd, ExternalSemaphoreFd, PushDescriptor},
|
||||
vk::{
|
||||
DeviceCreateInfo, DeviceMemory, DeviceQueueCreateInfo, ExtExternalMemoryDmaBufFn,
|
||||
DeviceCreateInfo, DeviceQueueCreateInfo, ExtExternalMemoryDmaBufFn,
|
||||
ExtImageDrmFormatModifierFn, ExtPhysicalDeviceDrmFn, ExtQueueFamilyForeignFn,
|
||||
ExternalSemaphoreFeatureFlags, ExternalSemaphoreHandleTypeFlags,
|
||||
ExternalSemaphoreProperties, KhrDriverPropertiesFn, KhrExternalFenceFdFn,
|
||||
|
|
@ -84,16 +84,6 @@ impl VulkanDevice {
|
|||
}
|
||||
}
|
||||
|
||||
struct FreeMem<'a>(&'a Device, DeviceMemory);
|
||||
|
||||
impl<'a> Drop for FreeMem<'a> {
|
||||
fn drop(&mut self) {
|
||||
unsafe {
|
||||
self.0.free_memory(self.1, None);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl VulkanInstance {
|
||||
fn get_device_extensions(&self, phy_dev: PhysicalDevice) -> Result<Extensions, VulkanError> {
|
||||
unsafe {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue