aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ponymix.cc3
-rw-r--r--pulse.cc3
2 files changed, 0 insertions, 6 deletions
diff --git a/ponymix.cc b/ponymix.cc
index a620036..48a751e 100644
--- a/ponymix.cc
+++ b/ponymix.cc
@@ -83,9 +83,6 @@ static const char* type_to_string(enum DeviceType t) {
case DEVTYPE_SOURCE_OUTPUT:
return "source-output";
}
-
- /* impossibiru! */
- throw std::out_of_range("device type out of range");
}
static enum DeviceType string_to_devtype_or_die(const char* str) {
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<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) {