Merge pull request #591 from kistlin/fix/unused_variables_warnings

fix warnings about unused/maybe uninitialized variables
This commit is contained in:
AlexandreRouma
2022-01-22 04:29:00 +01:00
committed by GitHub
15 changed files with 1 additions and 35 deletions

View File

@ -354,12 +354,6 @@ void MainWindow::draw() {
core::configManager.release(true);
}
ImVec2 vMin = ImGui::GetWindowContentRegionMin();
ImVec2 vMax = ImGui::GetWindowContentRegionMax();
int width = vMax.x - vMin.x;
int height = vMax.y - vMin.y;
// To Bar
ImGui::PushID(ImGui::GetID("sdrpp_menu_btn"));
if (ImGui::ImageButton(icons::MENU, ImVec2(30, 30), ImVec2(0, 0), ImVec2(1, 1), 5) || ImGui::IsKeyPressed(GLFW_KEY_MENU, false)) {
@ -489,7 +483,6 @@ void MainWindow::draw() {
ImGui::SetColumnWidth(1, winSize.x - menuWidth - 60);
ImGui::SetColumnWidth(2, 60);
ImGui::BeginChild("Left Column");
float menuColumnWidth = ImGui::GetContentRegionAvailWidth();
if (gui::menu.draw(firstMenuRender)) {
core::configManager.acquire();