From 50b02df5fd05a662a1973f6690914e8a3e756d4c Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 30 Jun 2023 11:52:35 +0200 Subject: [PATCH] webrtc: Remove unused overload Signed-off-by: Steffen Vogel --- include/villas/nodes/webrtc.hpp | 3 --- lib/nodes/webrtc.cpp | 15 ++++++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/include/villas/nodes/webrtc.hpp b/include/villas/nodes/webrtc.hpp index 1776d44ca..be853494b 100644 --- a/include/villas/nodes/webrtc.hpp +++ b/include/villas/nodes/webrtc.hpp @@ -62,9 +62,6 @@ public: virtual int parse(json_t *json); - virtual - int check(); - virtual int start(); diff --git a/lib/nodes/webrtc.cpp b/lib/nodes/webrtc.cpp index 54bdae980..49592da85 100644 --- a/lib/nodes/webrtc.cpp +++ b/lib/nodes/webrtc.cpp @@ -123,11 +123,6 @@ int WebRTCNode::parse(json_t *json) return 0; } -int WebRTCNode::check() -{ - return Node::check(); -} - int WebRTCNode::prepare() { int ret = Node::prepare(); @@ -149,6 +144,7 @@ int WebRTCNode::prepare() if (ret) // TODO log return ret; + // TODO: Move this to a member function conn->onMessage([this](rtc::binary msg){ int ret; std::vector smps; @@ -204,6 +200,7 @@ std::vector WebRTCNode::getPollFDs() const std::string & WebRTCNode::getDetails() { + // TODO details = fmt::format(""); return details; } @@ -237,6 +234,14 @@ int WebRTCNode::_write(struct Sample *smps[], unsigned cnt) return ret; } +json_t * WebRTCNode::_readStatus() +{ + if (!conn) + return nullptr; + + return conn->readStatus(); +} + int WebRTCNodeFactory::start(SuperNode *sn) { web = sn->getWeb();