From cabb6d351563bd52b4ea7efa3b2f5a026c1b1aa0 Mon Sep 17 00:00:00 2001 From: oir Date: Sat, 11 May 2024 12:18:46 -0400 Subject: [PATCH] remove debug code --- tests/demo.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/tests/demo.cpp b/tests/demo.cpp index 6621ef0..0335dc7 100644 --- a/tests/demo.cpp +++ b/tests/demo.cpp @@ -7,27 +7,6 @@ int main(int /*argc*/, char** /*argv*/) { using namespace std::chrono_literals; namespace bk = barkeep; - { - std::vector v(300, 0); - std::iota(v.begin(), v.end(), 1); // 1, 2, 3, ..., 300 - float sum = 0; - bk::IterableBar bar(v, {.message = "Summing", .interval = .02}); - std::this_thread::sleep_for(2s); - std::cout << "..." << std::endl; - std::this_thread::sleep_for(2s); - - for (auto x : bar) { - std::this_thread::sleep_for(1.s / x); - sum += x; - } - - std::this_thread::sleep_for(2s); - std::cout << "..." << std::endl; - std::this_thread::sleep_for(2s); - - std::cout << "Sum: " << sum << std::endl; - } - for (auto sty : {bk::Ellipsis, bk::Bar, bk::Moon}) { auto anim = bk::Animation({.message = "Working", .style = sty, .interval = 0.5s});