Skip to content

Commit e768ff0

Browse files
author
devsh
committed
Remove CustomBoneNameIterator (useful code, so resurrect in the future)
1 parent e9f937e commit e768ff0

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

include/nbl/video/utilities/IGPUObjectFromAssetConverter.h

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -145,49 +145,6 @@ auto IGPUObjectFromAssetConverter::create(const asset::ICPUBuffer** const _begin
145145
return res;
146146
}
147147

148-
namespace impl
149-
{
150-
template<typename MapIterator>
151-
struct CustomBoneNameIterator
152-
{
153-
inline CustomBoneNameIterator(const MapIterator& it) : m_it(it) {}
154-
inline CustomBoneNameIterator(MapIterator&& it) : m_it(std::move(it)) {}
155-
156-
inline bool operator!=(const CustomBoneNameIterator<MapIterator>& other) const
157-
{
158-
return m_it!=other.m_it;
159-
}
160-
161-
inline CustomBoneNameIterator<MapIterator>& operator++()
162-
{
163-
++m_it;
164-
return *this;
165-
}
166-
inline CustomBoneNameIterator<MapIterator> operator++(int)
167-
{
168-
return m_it++;
169-
}
170-
171-
inline const auto& operator*() const
172-
{
173-
return m_it->first;
174-
}
175-
inline auto& operator*()
176-
{
177-
return m_it->first;
178-
}
179-
180-
using iterator_category = typename std::iterator_traits<MapIterator>::iterator_category;
181-
using difference_type = typename std::iterator_traits<MapIterator>::difference_type;
182-
using value_type = const char*;
183-
using reference = std::add_lvalue_reference_t<value_type>;
184-
using pointer = std::add_pointer_t<value_type>;
185-
186-
private:
187-
MapIterator m_it;
188-
};
189-
}
190-
191148

192149
// TODO: rewrite after GPU polyphase implementation
193150
auto IGPUObjectFromAssetConverter::create(const asset::ICPUImage** const _begin, const asset::ICPUImage** const _end, SParams& _params) -> created_gpu_object_array<asset::ICPUImage>

0 commit comments

Comments
 (0)