From 82412f7fe58608b26d8db96568f333182f481bf8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 18 Jan 2015 01:49:27 +0000 Subject: Remove unused MapIterator --- p2pvr/lib/mapIterator.cpp | 11 ----------- p2pvr/lib/mapIterator.h | 44 -------------------------------------------- 2 files changed, 55 deletions(-) delete mode 100644 p2pvr/lib/mapIterator.cpp delete mode 100644 p2pvr/lib/mapIterator.h diff --git a/p2pvr/lib/mapIterator.cpp b/p2pvr/lib/mapIterator.cpp deleted file mode 100644 index 157669a..0000000 --- a/p2pvr/lib/mapIterator.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#include -#include "mapIterator.h" -#include "p2Helpers.h" - -template<> -void BindColumns>(RowState & rs, std::pair const & p) -{ - rs.fields[0] << p.first; - rs.fields[1] << p.second; -} - diff --git a/p2pvr/lib/mapIterator.h b/p2pvr/lib/mapIterator.h deleted file mode 100644 index 70aa424..0000000 --- a/p2pvr/lib/mapIterator.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef MAPITERATOR_H -#define MAPITERATOR_H - -#include -#include "objectRowState.h" - -template -class MapIterator : public IHaveSubTasks { - public: - template - MapIterator(const ColumnSpecifier & cs, const T * m, const Parents & ... p) : - SourceObject(__PRETTY_FUNCTION__), - IHaveSubTasks(NULL), - binder(boost::bind(&BindColumns, _1, _2, p...)), - columnSpecifier(cs), - map(m) - { - } - - void execute(ExecContext * ec) const - { - ObjectRowState rs(columnSpecifier); - for (const auto & i : *map) { - binder(rs, i); - rs.process(boost::bind(&MapIterator::executeChildren, this, ec)); - } - } - - private: - boost::function binder; - const ColumnSpecifier columnSpecifier; - const T * map; - - void executeChildren(ExecContext * ec) const - { - for (const Tasks::value_type & sq : normal) { - sq->execute(ec); - } - } -}; - -#endif - - -- cgit v1.2.3