summaryrefslogtreecommitdiffstats
path: root/library/cpp/yson_pull
diff options
context:
space:
mode:
authormonster <[email protected]>2022-07-07 14:41:37 +0300
committermonster <[email protected]>2022-07-07 14:41:37 +0300
commit06e5c21a835c0e923506c4ff27929f34e00761c2 (patch)
tree75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /library/cpp/yson_pull
parent03f024c4412e3aa613bb543cf1660176320ba8f4 (diff)
fix ya.make
Diffstat (limited to 'library/cpp/yson_pull')
-rw-r--r--library/cpp/yson_pull/bridge.h34
-rw-r--r--library/cpp/yson_pull/yson.h14
2 files changed, 0 insertions, 48 deletions
diff --git a/library/cpp/yson_pull/bridge.h b/library/cpp/yson_pull/bridge.h
deleted file mode 100644
index ac767dcba01..00000000000
--- a/library/cpp/yson_pull/bridge.h
+++ /dev/null
@@ -1,34 +0,0 @@
-#pragma once
-
-#include "consumer.h"
-#include "event.h"
-#include "writer.h"
-
-namespace NYsonPull {
- //! \brief Connect YSON stream producer and consumer.
- //!
- //! Useful for writing YSON stream filters.
- //! \p Producer must have a \p next_event() method (like \p NYsonPull::reader).
- //! \p Consumer must be like \p NYsonPull::consumer interface.
- template <typename Producer, typename Consumer>
- inline void Bridge(Producer&& producer, Consumer&& consumer) {
- for (;;) {
- auto& event = producer.NextEvent();
- consumer.OnEvent(event);
- if (event.Type() == EEventType::EndStream) {
- break;
- }
- }
- }
-
- template <typename Producer>
- inline void Bridge(Producer&& producer, TWriter& writer_) {
- Bridge(std::forward<Producer>(producer), writer_.GetConsumer());
- }
-
- template <typename Producer>
- inline void Bridge(Producer&& producer, TWriter&& writer_) {
- Bridge(std::forward<Producer>(producer), writer_.GetConsumer());
- }
-
-}
diff --git a/library/cpp/yson_pull/yson.h b/library/cpp/yson_pull/yson.h
deleted file mode 100644
index a77eaa5c94a..00000000000
--- a/library/cpp/yson_pull/yson.h
+++ /dev/null
@@ -1,14 +0,0 @@
-#pragma once
-
-#include "bridge.h"
-#include "consumer.h"
-#include "event.h"
-#include "exceptions.h"
-#include "input.h"
-#include "output.h"
-#include "position_info.h"
-#include "range.h"
-#include "reader.h"
-#include "scalar.h"
-#include "stream_type.h"
-#include "writer.h"