From 5588d879dee61b9636a00f73f522dd9686bfc9a4 Mon Sep 17 00:00:00 2001 From: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com> Date: Wed, 17 Feb 2016 15:53:20 -0500 Subject: [PATCH] video_device: remove dead code extractInt is not more used. Change-Id: Ie1ce08f9b35e78bb8cf905e6a0459f0416903775 Tuleap: #294 --- src/media/video/video_base.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/media/video/video_base.cpp b/src/media/video/video_base.cpp index 7e078668fe..44de0b160c 100644 --- a/src/media/video/video_base.cpp +++ b/src/media/video/video_base.cpp @@ -75,19 +75,6 @@ extractString(const std::map<std::string, std::string>& settings, const std::str return {}; } -static unsigned -extractInt(const std::map<std::string, std::string>& settings, const std::string& key) { - auto i = settings.find(key); - if (i != settings.cend()) { - try { - return ring::stoi(i->second); - } catch(...) { - RING_ERR("Can't parse int: %s", i->second.c_str()); - } - } - return 0; -} - VideoSettings::VideoSettings(const std::map<std::string, std::string>& settings) { name = extractString(settings, "name"); -- GitLab