Skip to content
Snippets Groups Projects
Commit 5588d879 authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

video_device: remove dead code

extractInt is not more used.

Change-Id: Ie1ce08f9b35e78bb8cf905e6a0459f0416903775
Tuleap: #294
parent 737f707b
No related branches found
No related tags found
No related merge requests found
...@@ -75,19 +75,6 @@ extractString(const std::map<std::string, std::string>& settings, const std::str ...@@ -75,19 +75,6 @@ extractString(const std::map<std::string, std::string>& settings, const std::str
return {}; 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) VideoSettings::VideoSettings(const std::map<std::string, std::string>& settings)
{ {
name = extractString(settings, "name"); name = extractString(settings, "name");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment