@@ -144,43 +144,6 @@ struct ReadDestUpdate
144
144
145
145
146
146
147
- template <typename LocalType, typename Input, typename ReadDest>
148
- decltype (auto ) CustomReadField(TypeList<std::vector<LocalType>>,
149
- Priority<1 >,
150
- InvokeContext& invoke_context,
151
- Input&& input,
152
- ReadDest&& read_dest)
153
- {
154
- return read_dest.update ([&](auto & value) {
155
- auto data = input.get ();
156
- value.clear ();
157
- value.reserve (data.size ());
158
- for (auto item : data) {
159
- ReadField (TypeList<LocalType>(), invoke_context, Make<ValueField>(item),
160
- ReadDestEmplace (TypeList<LocalType>(), [&](auto &&... args) -> auto & {
161
- value.emplace_back (std::forward<decltype (args)>(args)...);
162
- return value.back ();
163
- }));
164
- }
165
- });
166
- }
167
-
168
- template <typename Input, typename ReadDest>
169
- decltype (auto ) CustomReadField(TypeList<std::vector<bool >>,
170
- Priority<1 >,
171
- InvokeContext& invoke_context,
172
- Input&& input,
173
- ReadDest&& read_dest)
174
- {
175
- return read_dest.update ([&](auto & value) {
176
- auto data = input.get ();
177
- value.clear ();
178
- value.reserve (data.size ());
179
- for (auto item : data) {
180
- value.push_back (ReadField (TypeList<bool >(), invoke_context, Make<ValueField>(item), ReadDestTemp<bool >()));
181
- }
182
- });
183
- }
184
147
185
148
template <typename LocalType, typename Input, typename ReadDest>
186
149
decltype (auto ) CustomReadField(TypeList<std::set<LocalType>>,
@@ -635,21 +598,6 @@ struct ListOutput<::capnp::List<T, kind>>
635
598
// clang-format on
636
599
};
637
600
638
- template <typename LocalType, typename Value, typename Output>
639
- void CustomBuildField (TypeList<std::vector<LocalType>>,
640
- Priority<1 >,
641
- InvokeContext& invoke_context,
642
- Value&& value,
643
- Output&& output)
644
- {
645
- // FIXME dedup with set handler below
646
- auto list = output.init (value.size ());
647
- size_t i = 0 ;
648
- for (auto it = value.begin (); it != value.end (); ++it, ++i) {
649
- BuildField (TypeList<LocalType>(), invoke_context, ListOutput<typename decltype (list)::Builds>(list, i), *it);
650
- }
651
- }
652
-
653
601
template <typename LocalType, typename Value, typename Output>
654
602
void CustomBuildField (TypeList<std::set<LocalType>>,
655
603
Priority<1 >,
@@ -688,11 +636,6 @@ ::capnp::Void BuildPrimitive(InvokeContext& invoke_context, Value&&, TypeList<::
688
636
return {};
689
637
}
690
638
691
- inline static bool BuildPrimitive (InvokeContext& invoke_context, std::vector<bool >::const_reference value, TypeList<bool >)
692
- {
693
- return value;
694
- }
695
-
696
639
template <typename LocalType, typename Value>
697
640
LocalType BuildPrimitive (InvokeContext& invoke_context,
698
641
const Value& value,
0 commit comments