diff --git a/vulkan/vulkan_application.cc b/vulkan/vulkan_application.cc index eaba000274ca4..7ba881b843181 100644 --- a/vulkan/vulkan_application.cc +++ b/vulkan/vulkan_application.cc @@ -129,10 +129,6 @@ const VulkanHandle& VulkanApplication::GetInstance() const { return instance_; } -void VulkanApplication::ReleaseInstanceOwnership() { - instance_.ReleaseOwnership(); -} - std::vector VulkanApplication::GetPhysicalDevices() const { if (!IsValid()) { return {}; diff --git a/vulkan/vulkan_application.h b/vulkan/vulkan_application.h index a5f20c07f63ec..9274701f95801 100644 --- a/vulkan/vulkan_application.h +++ b/vulkan/vulkan_application.h @@ -38,8 +38,6 @@ class VulkanApplication { const VulkanHandle& GetInstance() const; - void ReleaseInstanceOwnership(); - std::unique_ptr AcquireFirstCompatibleLogicalDevice() const; private: diff --git a/vulkan/vulkan_device.cc b/vulkan/vulkan_device.cc index bb6c2e8a1437c..745110ed70f2c 100644 --- a/vulkan/vulkan_device.cc +++ b/vulkan/vulkan_device.cc @@ -153,10 +153,6 @@ const VulkanHandle& VulkanDevice::GetHandle() const { return device_; } -void VulkanDevice::ReleaseDeviceOwnership() { - device_.ReleaseOwnership(); -} - const VulkanHandle& VulkanDevice::GetPhysicalDeviceHandle() const { return physical_device_; diff --git a/vulkan/vulkan_device.h b/vulkan/vulkan_device.h index e9abf757f6a94..e32f37d7ed57b 100644 --- a/vulkan/vulkan_device.h +++ b/vulkan/vulkan_device.h @@ -35,8 +35,6 @@ class VulkanDevice { uint32_t GetGraphicsQueueIndex() const; - void ReleaseDeviceOwnership(); - FXL_WARN_UNUSED_RESULT bool GetSurfaceCapabilities(const VulkanSurface& surface, VkSurfaceCapabilitiesKHR* capabilities) const; diff --git a/vulkan/vulkan_handle.h b/vulkan/vulkan_handle.h index 87f535e9b9132..32f1f938e25bb 100644 --- a/vulkan/vulkan_handle.h +++ b/vulkan/vulkan_handle.h @@ -50,11 +50,6 @@ class VulkanHandle { operator Handle() const { return handle_; } - /// Relinquish responsibility of collecting the underlying handle when this - /// object is collected. It is the responsibility of the caller to ensure that - /// the lifetime of the handle extends past the lifetime of this object. - void ReleaseOwnership() { disposer_ = nullptr; } - void Reset() { DisposeIfNecessary(); } private: