diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-07-05 15:28:47 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-07-05 15:28:47 -0400 |
commit | 969290450571bfb44ada07892dee69c18f88afc3 (patch) | |
tree | b1029d0f81ec6e3ad85d4cf8fd0ce1c47a25ec49 /pulse.cc | |
parent | 18b650bbc8468dcb077ec95e2ca50c9e6bc5e599 (diff) | |
download | mirror-ponymix-969290450571bfb44ada07892dee69c18f88afc3.tar.gz mirror-ponymix-969290450571bfb44ada07892dee69c18f88afc3.tar.bz2 mirror-ponymix-969290450571bfb44ada07892dee69c18f88afc3.zip |
remove runtime_error exceptions for impossible
these should be caught at compiletime, not runtime
Diffstat (limited to 'pulse.cc')
-rw-r--r-- | pulse.cc | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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<Device>& PulseClient::GetDevices(enum DeviceType type) const { @@ -220,7 +218,6 @@ const vector<Device>& 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) { |