diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-06 15:35:28 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-06 15:35:28 +0200 |
commit | ea78028750bcf6e5ad526763c5916bf39794ae12 (patch) | |
tree | 0898e817e3f23bfbf6e69975e28e33c77baeb6da /common/resultset.cpp | |
parent | f2fac63e086b4bd8dfc3ed9c9f31241eb9df9b9c (diff) | |
download | sink-ea78028750bcf6e5ad526763c5916bf39794ae12.tar.gz sink-ea78028750bcf6e5ad526763c5916bf39794ae12.zip |
Removed unused code
Diffstat (limited to 'common/resultset.cpp')
-rw-r--r-- | common/resultset.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/common/resultset.cpp b/common/resultset.cpp index 88110e1..047a0d1 100644 --- a/common/resultset.cpp +++ b/common/resultset.cpp | |||
@@ -30,10 +30,6 @@ ResultSet::ResultSet(const ValueGenerator &generator, const SkipValue &skip) : m | |||
30 | { | 30 | { |
31 | } | 31 | } |
32 | 32 | ||
33 | ResultSet::ResultSet(const IdGenerator &generator) : mIt(nullptr), mGenerator(generator), mSkip([this]() { next(); }) | ||
34 | { | ||
35 | } | ||
36 | |||
37 | ResultSet::ResultSet(const QVector<Identifier> &resultSet) | 33 | ResultSet::ResultSet(const QVector<Identifier> &resultSet) |
38 | : mResultSet(resultSet), | 34 | : mResultSet(resultSet), |
39 | mIt(mResultSet.constBegin()), | 35 | mIt(mResultSet.constBegin()), |
@@ -51,9 +47,6 @@ ResultSet::ResultSet(const ResultSet &other) : mResultSet(other.mResultSet), mIt | |||
51 | if (other.mValueGenerator) { | 47 | if (other.mValueGenerator) { |
52 | mValueGenerator = other.mValueGenerator; | 48 | mValueGenerator = other.mValueGenerator; |
53 | mSkip = other.mSkip; | 49 | mSkip = other.mSkip; |
54 | } else if (other.mGenerator) { | ||
55 | mGenerator = other.mGenerator; | ||
56 | mSkip = [this]() { next(); }; | ||
57 | } else { | 50 | } else { |
58 | mResultSet = other.mResultSet; | 51 | mResultSet = other.mResultSet; |
59 | mIt = mResultSet.constBegin(); | 52 | mIt = mResultSet.constBegin(); |
@@ -74,12 +67,6 @@ bool ResultSet::next() | |||
74 | } | 67 | } |
75 | mFirst = false; | 68 | mFirst = false; |
76 | return mIt != mResultSet.constEnd(); | 69 | return mIt != mResultSet.constEnd(); |
77 | } else if (mGenerator) { | ||
78 | Q_ASSERT(mGenerator); | ||
79 | mCurrentValue = mGenerator(); | ||
80 | if (!mCurrentValue.isNull()) { | ||
81 | return true; | ||
82 | } | ||
83 | } else { | 70 | } else { |
84 | next([](const Result &) { return false; }); | 71 | next([](const Result &) { return false; }); |
85 | } | 72 | } |