From 39d71a7a0998027104faa40264c7cc75b8e76e66 Mon Sep 17 00:00:00 2001 From: Guillaume Jacquemin Date: Mon, 28 Aug 2023 13:32:06 +0200 Subject: [PATCH] SaveTool: remove licences for third-party deps. This should thin the exe up a bit. --- src/SaveTool/SaveTool_drawAbout.cpp | 56 ----------------------------- src/assets.conf | 28 --------------- 2 files changed, 84 deletions(-) diff --git a/src/SaveTool/SaveTool_drawAbout.cpp b/src/SaveTool/SaveTool_drawAbout.cpp index 9c1927f..3f1cb92 100644 --- a/src/SaveTool/SaveTool_drawAbout.cpp +++ b/src/SaveTool/SaveTool_drawAbout.cpp @@ -115,14 +115,6 @@ SaveTool::drawAbout() { ImGui::TextUnformatted("Licence: MIT"); - static auto corrade_licence = _rs.getRaw("COPYING.Corrade"); - if(ImGui::BeginChild("##CorradeLicence", {0.0f, float(windowSize().y()) * 0.3f}, true)) { - ImGui::PushFont(ImGui::GetIO().Fonts->Fonts[1]); - ImGui::TextUnformatted(corrade_licence.begin(), corrade_licence.end()); - ImGui::PopFont(); - } - ImGui::EndChild(); - ImGui::TreePop(); } @@ -143,14 +135,6 @@ SaveTool::drawAbout() { ImGui::TextUnformatted("Licence: MIT"); - static auto magnum_licence = _rs.getRaw("COPYING.Magnum"); - if(ImGui::BeginChild("##MagnumLicence", {0.0f, float(windowSize().y()) * 0.3f}, true)) { - ImGui::PushFont(ImGui::GetIO().Fonts->Fonts[1]); - ImGui::TextUnformatted(magnum_licence.begin(), magnum_licence.end()); - ImGui::PopFont(); - } - ImGui::EndChild(); - ImGui::TreePop(); } @@ -169,14 +153,6 @@ SaveTool::drawAbout() { ImGui::TextUnformatted("Licence: MIT"); - static auto imgui_licence = _rs.getRaw("LICENSE.ImGui"); - if(ImGui::BeginChild("##ImGuiLicence", {0.0f, float(windowSize().y()) * 0.3f}, true)) { - ImGui::PushFont(ImGui::GetIO().Fonts->Fonts[1]); - ImGui::TextUnformatted(imgui_licence.begin(), imgui_licence.end()); - ImGui::PopFont(); - } - ImGui::EndChild(); - ImGui::TreePop(); } @@ -195,14 +171,6 @@ SaveTool::drawAbout() { ImGui::TextUnformatted("Licence: zlib"); - static auto sdl_licence = _rs.getRaw("LICENSE.SDL"); - if(ImGui::BeginChild("##SDLLicence", {0.0f, float(windowSize().y()) * 0.3f}, true)) { - ImGui::PushFont(ImGui::GetIO().Fonts->Fonts[1]); - ImGui::TextUnformatted(sdl_licence.begin(), sdl_licence.end()); - ImGui::PopFont(); - } - ImGui::EndChild(); - ImGui::TreePop(); } @@ -221,14 +189,6 @@ SaveTool::drawAbout() { ImGui::TextUnformatted("Licence: 3-clause BSD"); - static auto libzip_licence = _rs.getRaw("LICENSE.libzip"); - if(ImGui::BeginChild("##libzipLicence", {0.0f, float(windowSize().y()) * 0.3f}, true)) { - ImGui::PushFont(ImGui::GetIO().Fonts->Fonts[1]); - ImGui::TextUnformatted(libzip_licence.begin(), libzip_licence.end()); - ImGui::PopFont(); - } - ImGui::EndChild(); - ImGui::TreePop(); } @@ -246,14 +206,6 @@ SaveTool::drawAbout() { ImGui::TextUnformatted("Licence: MIT"); - static auto efsw_licence = _rs.getRaw("LICENSE.efsw"); - if(ImGui::BeginChild("##efswLicence", {0.0f, float(windowSize().y()) * 0.3f}, true)) { - ImGui::PushFont(ImGui::GetIO().Fonts->Fonts[1]); - ImGui::TextUnformatted(efsw_licence.begin(), efsw_licence.end()); - ImGui::PopFont(); - } - ImGui::EndChild(); - ImGui::TreePop(); } @@ -272,14 +224,6 @@ SaveTool::drawAbout() { ImGui::TextUnformatted("Licence: MIT/X derivative"); - static auto curl_licence = _rs.getRaw("LICENSE.curl"); - if(ImGui::BeginChild("##libcurlLicence", {0.0f, float(windowSize().y()) * 0.3f}, true)) { - ImGui::PushFont(ImGui::GetIO().Fonts->Fonts[1]); - ImGui::TextUnformatted(curl_licence.begin(), curl_licence.end()); - ImGui::PopFont(); - } - ImGui::EndChild(); - ImGui::TreePop(); } diff --git a/src/assets.conf b/src/assets.conf index 212724e..e0035cc 100644 --- a/src/assets.conf +++ b/src/assets.conf @@ -19,31 +19,3 @@ alias=fa-brands-400.ttf [file] filename=../COPYING alias=COPYING - -[file] -filename=../third-party/corrade/COPYING -alias=COPYING.Corrade - -[file] -filename=../third-party/magnum/COPYING -alias=COPYING.Magnum - -[file] -filename=../third-party/imgui/LICENSE.txt -alias=LICENSE.ImGui - -[file] -filename=../third-party/SDL/LICENSE.txt -alias=LICENSE.SDL - -[file] -filename=../third-party/libzip/LICENSE -alias=LICENSE.libzip - -[file] -filename=../third-party/efsw/LICENSE -alias=LICENSE.efsw - -[file] -filename=../third-party/curl/COPYING -alias=LICENSE.curl