summaryrefslogtreecommitdiff
path: root/battleNetApi/src/tokenPool.cpp
diff options
context:
space:
mode:
authorAotrix <[email protected]>2026-04-28 03:49:41 +0200
committerAotrix <[email protected]>2026-04-28 03:49:41 +0200
commita0632d299b85dc4ef7c0e03898f38e6deca0edc2 (patch)
treecc83712ca644e8b5d1b9e1c0c49bdbdd8475d0a9 /battleNetApi/src/tokenPool.cpp
parent5582e994d39b16a6d61f05b13e78c30f4bac5d84 (diff)
add HearthstoneTokenBuilder class
Diffstat (limited to 'battleNetApi/src/tokenPool.cpp')
-rw-r--r--battleNetApi/src/tokenPool.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/battleNetApi/src/tokenPool.cpp b/battleNetApi/src/tokenPool.cpp
deleted file mode 100644
index b74aae5..0000000
--- a/battleNetApi/src/tokenPool.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <tokenPool.hpp>
-
-std::optional<Token> TokenPool::availableToken() {
- if (aTokenContainer.empty()) {
- return std::nullopt;
- }
- Token aOutputToken{aTokenContainer.front()};
- aTokenContainer.pop();
- return aOutputToken;
-}
-
-void TokenPool::feedTokenSource(const std::string &iJsonPath) {
- aTokenContainer.emplace(iJsonPath);
-}
-
-void TokenPool::feedTokenSource(const std::span<std::string> &iJsonPaths) {
- for (const std::string &iJsonPath : iJsonPaths) {
- feedTokenSource(iJsonPath);
- }
-}