diff options
author | Chris Robinson <[email protected]> | 2022-02-21 21:46:38 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-21 21:46:38 -0800 |
commit | 1f9390f6f6bc4b86ebe177108d23588f5fdf5d2d (patch) | |
tree | 98b246da73804d89b8e3d54b9508a64304d51255 /alc/context.h | |
parent | af6ce8e0d97f0821f13060849215e9804282f3a9 (diff) |
Use a simpler loop to enumerate sources
Diffstat (limited to 'alc/context.h')
-rw-r--r-- | alc/context.h | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/alc/context.h b/alc/context.h index 0a884835..a7bbef83 100644 --- a/alc/context.h +++ b/alc/context.h @@ -260,68 +260,6 @@ public: private: - using SourceList = al::vector<SourceSubList>; - - - struct SourceListIteratorBeginTag{}; - struct SourceListIteratorEndTag{}; - - class SourceListIterator - { - public: - SourceListIterator( - SourceList& sources, - SourceListIteratorBeginTag) noexcept; - - SourceListIterator( - SourceList& sources, - SourceListIteratorEndTag) noexcept; - - SourceListIterator( - const SourceListIterator& rhs); - - SourceListIterator& operator=( - const SourceListIterator& rhs) = delete; - - SourceListIterator& operator++(); - - ALsource& operator*() noexcept; - - bool operator==( - const SourceListIterator& rhs) const noexcept; - - bool operator!=( - const SourceListIterator& rhs) const noexcept; - - - private: - SourceList::iterator sub_list_iterator_; - SourceList::iterator sub_list_end_iterator_; - std::uint64_t sub_list_item_index_; - }; // SourceListIterator - - class SourceListEnumerator - { - public: - explicit SourceListEnumerator( - SourceList& sources) noexcept; - - SourceListEnumerator( - const SourceListEnumerator& rhs) = delete; - - SourceListEnumerator& operator=( - const SourceListEnumerator& rhs) = delete; - - SourceListIterator begin() noexcept; - - SourceListIterator end() noexcept; - - - private: - SourceList& sources_; - }; // SourceListEnumerator - - struct Eax { EAX50CONTEXTPROPERTIES context{}; |