Skip to content

Commit cbaff75

Browse files
committed
Remove debug code and fix warnings.
1 parent fa8420b commit cbaff75

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

imgui.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9535,7 +9535,6 @@ static void PropagateLayoutSpace(ImGuiLayout* layout, const ImVec2& extents)
95359535
{
95369536
layout->AvailableSize = extents;
95379537

9538-
ImVec2 maximum_extent = ImVec2(0.0f, 0.0f);
95399538
for (ImGuiLayout* child = layout->FirstChild; child; child = child->NextSibling)
95409539
{
95419540
ImVec2 new_available_size;
@@ -9643,33 +9642,19 @@ static void DistributeAvailableLayoutSpace(ImGuiLayout* layout)
96439642
layout->Dirty = ImGuiLayoutDirtyFlags_None;
96449643
}
96459644

9646-
extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA(const char*);
9647-
96489645
static void ReflowLayouts()
96499646
{
96509647
ImGuiContext& g = *GImGui;
96519648

9652-
// int count = 0;
96539649
for (int i = 0; i < g.Layouts.size(); ++i)
96549650
{
96559651
ImGuiLayout* layout = g.Layouts[i];
96569652
if (!layout->Parent && layout->Dirty)
96579653
{
96589654
CalculateLayoutAvailableSpace(layout);
96599655
DistributeAvailableLayoutSpace(layout);
9660-
// ++count;
96619656
}
96629657
}
9663-
9664-
//if (count)
9665-
// {
9666-
// char buffer[64];
9667-
// if (count)
9668-
// snprintf(buffer, 63, "HIT! %d\n", count);
9669-
// else
9670-
// snprintf(buffer, 63, "MISS!\n");
9671-
// OutputDebugStringA(buffer);
9672-
// }
96739658
}
96749659

96759660
static ImGuiLayoutItem* PushNextLayoutItem(ImGuiLayout* layout, ImGuiLayoutItemType type)

0 commit comments

Comments
 (0)