From f7f2678f82209d53c5348ab3bbe1e4e0dcfae94e Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 26 Nov 2019 10:59:09 -0500 Subject: [PATCH] Remove ModelBox::deletePreview(). --- src/app/ModuleBrowser.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/app/ModuleBrowser.cpp b/src/app/ModuleBrowser.cpp index a9a3fd1f..7a52dc58 100644 --- a/src/app/ModuleBrowser.cpp +++ b/src/app/ModuleBrowser.cpp @@ -180,13 +180,6 @@ struct ModelBox : widget::OpaqueWidget { box.size.x = previewWidget->box.size.x; } - void deletePreview() { - assert(previewFb); - previewWidget->removeChild(previewFb); - delete previewFb; - previewFb = NULL; - } - void draw(const DrawArgs& args) override { // Lazily create preview when drawn if (!previewFb) {