From 5186e617bd231acaacf970cb289450de03ef86aa Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 28 Sep 2022 17:47:19 +0100 Subject: LibCards+Games: Remove concept of a CardStack being focused This was only used for asking the stack if it is the one we are moving cards from. We now have a better way to do that, by comparing against `CardGame::moving_cards_source_stack()`, which doesn't require manually telling a stack that it is/isn't focused. --- Userland/Libraries/LibCards/CardStack.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'Userland/Libraries/LibCards/CardStack.h') diff --git a/Userland/Libraries/LibCards/CardStack.h b/Userland/Libraries/LibCards/CardStack.h index bcde339029..f821b8a722 100644 --- a/Userland/Libraries/LibCards/CardStack.h +++ b/Userland/Libraries/LibCards/CardStack.h @@ -34,7 +34,6 @@ public: CardStack(Gfx::IntPoint const& position, Type type, RefPtr covered_stack = nullptr); bool is_empty() const { return m_stack.is_empty(); } - bool is_focused() const { return m_focused; } Type type() const { return m_type; } NonnullRefPtrVector const& stack() const { return m_stack; } size_t count() const { return m_stack.size(); } @@ -42,7 +41,6 @@ public: Card& peek() { return m_stack.last(); } Gfx::IntRect const& bounding_box() const { return m_bounding_box; } - void set_focused(bool focused) { m_focused = focused; } bool make_top_card_visible(); // Returns true if the card was flipped. void push(NonnullRefPtr card); @@ -93,7 +91,6 @@ private: Gfx::IntRect m_bounding_box; Type m_type { Type::Invalid }; StackRules m_rules; - bool m_focused { false }; Gfx::IntRect m_base; }; -- cgit v1.2.3