Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Oct 30, 2023
1 parent 9b9fcd1 commit f209228
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/utility/ImGui.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#include <imgui.h>
#include <imgui_internal.h>

#include <glm/vec2.hpp>

#include "ImGui.hpp"

namespace imgui {
Expand All @@ -14,11 +12,8 @@ bool is_point_intersecting_any(float x, float y) {
return false;
}

for (int n = 0; n < ctx->Windows.Size; n++) {
const auto window = ctx->Windows[n];
const auto pos = glm::vec2{window->Pos.x, window->Pos.y};
const auto size = glm::vec2{window->Size.x, window->Size.y};
const auto mx = pos + size;
for (int i = 0; i < ctx->Windows.Size; i++) {
const auto window = ctx->Windows[i];

if (window->WasActive && window->Active) {
if (x >= window->Pos.x && x <= window->Pos.x + window->Size.x &&
Expand Down

0 comments on commit f209228

Please sign in to comment.