From 969290450571bfb44ada07892dee69c18f88afc3 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 5 Jul 2014 15:28:47 -0400 Subject: remove runtime_error exceptions for impossible these should be caught at compiletime, not runtime --- pulse.cc | 3 --- 1 file changed, 3 deletions(-) (limited to 'pulse.cc') diff --git a/pulse.cc b/pulse.cc index 40234d9..1253c2d 100644 --- a/pulse.cc +++ b/pulse.cc @@ -192,7 +192,6 @@ Device* PulseClient::GetDevice(const uint32_t index, enum DeviceType type) { case DEVTYPE_SOURCE_OUTPUT: return GetSourceOutput(index); } - throw std::runtime_error("Impossible DeviceType encountered in GetDevice"); } Device* PulseClient::GetDevice(const string& name, enum DeviceType type) { @@ -206,7 +205,6 @@ Device* PulseClient::GetDevice(const string& name, enum DeviceType type) { case DEVTYPE_SOURCE_OUTPUT: return GetSourceOutput(name); } - throw std::runtime_error("Impossible DeviceType encountered in GetDevice"); } const vector& PulseClient::GetDevices(enum DeviceType type) const { @@ -220,7 +218,6 @@ const vector& PulseClient::GetDevices(enum DeviceType type) const { case DEVTYPE_SOURCE_OUTPUT: return GetSourceOutputs(); } - throw std::runtime_error("Impossible DeviceType encountered in GetDevices"); } Device* PulseClient::GetSink(const uint32_t index) { -- cgit v1.2.3