Remove no-op/unnecessary Multi(Source|Destination)Impl.

PiperOrigin-RevId: 479426473
This commit is contained in:
MediaPipe Team 2022-10-06 15:25:30 -07:00 committed by Copybara-Service
parent 1b0ab6f9b8
commit d0707227e4

View File

@ -125,12 +125,6 @@ class DestinationImpl {
DestinationBase& base_; DestinationBase& base_;
}; };
template <bool IsSide, typename T>
class MultiDestinationImpl : public MultiPort<DestinationImpl<IsSide, T>> {
public:
using MultiPort<DestinationImpl<IsSide, T>>::MultiPort;
};
template <bool IsSide, typename T = internal::Generic> template <bool IsSide, typename T = internal::Generic>
class SourceImpl { class SourceImpl {
public: public:
@ -186,12 +180,6 @@ class SourceImpl {
SourceBase* base_; SourceBase* base_;
}; };
template <bool IsSide, typename T>
class MultiSourceImpl : public MultiPort<SourceImpl<IsSide, T>> {
public:
using MultiPort<SourceImpl<IsSide, T>>::MultiPort;
};
// A source and a destination correspond to an output/input stream on a node, // A source and a destination correspond to an output/input stream on a node,
// and a side source and side destination correspond to an output/input side // and a side source and side destination correspond to an output/input side
// packet. // packet.
@ -201,20 +189,20 @@ class MultiSourceImpl : public MultiPort<SourceImpl<IsSide, T>> {
template <typename T = internal::Generic> template <typename T = internal::Generic>
using Source = SourceImpl<false, T>; using Source = SourceImpl<false, T>;
template <typename T = internal::Generic> template <typename T = internal::Generic>
using MultiSource = MultiSourceImpl<false, T>; using MultiSource = MultiPort<Source<T>>;
template <typename T = internal::Generic> template <typename T = internal::Generic>
using SideSource = SourceImpl<true, T>; using SideSource = SourceImpl<true, T>;
template <typename T = internal::Generic> template <typename T = internal::Generic>
using MultiSideSource = MultiSourceImpl<true, T>; using MultiSideSource = MultiPort<SideSource<T>>;
template <typename T = internal::Generic> template <typename T = internal::Generic>
using Destination = DestinationImpl<false, T>; using Destination = DestinationImpl<false, T>;
template <typename T = internal::Generic> template <typename T = internal::Generic>
using SideDestination = DestinationImpl<true, T>; using SideDestination = DestinationImpl<true, T>;
template <typename T = internal::Generic> template <typename T = internal::Generic>
using MultiDestination = MultiDestinationImpl<false, T>; using MultiDestination = MultiPort<Destination<T>>;
template <typename T = internal::Generic> template <typename T = internal::Generic>
using MultiSideDestination = MultiDestinationImpl<true, T>; using MultiSideDestination = MultiPort<SideDestination<T>>;
class NodeBase { class NodeBase {
public: public: