summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCards/CardStack.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-09-28 17:47:19 +0100
committerSam Atkins <atkinssj@gmail.com>2022-10-10 16:16:01 +0100
commit5186e617bd231acaacf970cb289450de03ef86aa (patch)
tree6fbf0106e1d030aeb10c4d4b0d9874435c791cc1 /Userland/Libraries/LibCards/CardStack.h
parentef8b1e25aa7ed30e71d0cae46ba5da55345fe181 (diff)
downloadserenity-5186e617bd231acaacf970cb289450de03ef86aa.zip
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.
Diffstat (limited to 'Userland/Libraries/LibCards/CardStack.h')
-rw-r--r--Userland/Libraries/LibCards/CardStack.h3
1 files changed, 0 insertions, 3 deletions
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<CardStack> 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<Card> 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> 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;
};