From d0707227e4971953fa69349a5ce7b732411394df Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Thu, 6 Oct 2022 15:25:30 -0700 Subject: [PATCH] Remove no-op/unnecessary Multi(Source|Destination)Impl. PiperOrigin-RevId: 479426473 --- mediapipe/framework/api2/builder.h | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/mediapipe/framework/api2/builder.h b/mediapipe/framework/api2/builder.h index b78014155..20043870c 100644 --- a/mediapipe/framework/api2/builder.h +++ b/mediapipe/framework/api2/builder.h @@ -125,12 +125,6 @@ class DestinationImpl { DestinationBase& base_; }; -template -class MultiDestinationImpl : public MultiPort> { - public: - using MultiPort>::MultiPort; -}; - template class SourceImpl { public: @@ -186,12 +180,6 @@ class SourceImpl { SourceBase* base_; }; -template -class MultiSourceImpl : public MultiPort> { - public: - using MultiPort>::MultiPort; -}; - // 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 // packet. @@ -201,20 +189,20 @@ class MultiSourceImpl : public MultiPort> { template using Source = SourceImpl; template -using MultiSource = MultiSourceImpl; +using MultiSource = MultiPort>; template using SideSource = SourceImpl; template -using MultiSideSource = MultiSourceImpl; +using MultiSideSource = MultiPort>; template using Destination = DestinationImpl; template using SideDestination = DestinationImpl; template -using MultiDestination = MultiDestinationImpl; +using MultiDestination = MultiPort>; template -using MultiSideDestination = MultiDestinationImpl; +using MultiSideDestination = MultiPort>; class NodeBase { public: