diff options
Diffstat (limited to 'battleNetApi/src/tokenPool.cpp')
| -rw-r--r-- | battleNetApi/src/tokenPool.cpp | 20 |
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); - } -} |
