From f56e2e981f510353d6ea61eb56ac4847437b6074 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Sat, 17 Dec 2022 16:31:34 +0400 Subject: [PATCH] Fix build --- submodules/DrawingUI/Sources/DrawingMetalView.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/submodules/DrawingUI/Sources/DrawingMetalView.swift b/submodules/DrawingUI/Sources/DrawingMetalView.swift index f181aeda4b..9dd8ea6ad1 100644 --- a/submodules/DrawingUI/Sources/DrawingMetalView.swift +++ b/submodules/DrawingUI/Sources/DrawingMetalView.swift @@ -721,13 +721,7 @@ final class Texture { return nil } #else - let content = self.content - let pool = self.pool guard let dataProvider = CGDataProvider(data: Data(bytesNoCopy: self.buffer.contents(), count: self.buffer.length, deallocator: .custom { [weak pool] _, _ in -// guard let pool = pool else { -// return -// } -// pool.recycle(content: content) }) as CFData) else { return nil }