diff options
| author | Patrick Venture <venture@google.com> | 2018-10-31 14:24:12 -0700 |
|---|---|---|
| committer | Patrick Venture <venture@google.com> | 2018-10-31 14:24:12 -0700 |
| commit | 4fd8cff4a936a290d875618b4ce6e517f8231779 (patch) | |
| tree | 31e0bf97217ca1e651d52fbbaccf7e5493b91729 /dbus | |
| parent | ffc5ca7fb2779445782480ec720911e68713ac33 (diff) | |
| download | phosphor-pid-control-4fd8cff4a936a290d875618b4ce6e517f8231779.tar.gz phosphor-pid-control-4fd8cff4a936a290d875618b4ce6e517f8231779.zip | |
cleanup: drop obsolete is_method_error checks
is_method_error is obsolete from sdbusplus.
Change-Id: Ia3fb76dd2f4a14eca51b3cfbcd50427b36d946b3
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'dbus')
| -rw-r--r-- | dbus/dbusconfiguration.cpp | 9 | ||||
| -rw-r--r-- | dbus/util.cpp | 5 |
2 files changed, 1 insertions, 13 deletions
diff --git a/dbus/dbusconfiguration.cpp b/dbus/dbusconfiguration.cpp index 067efc7..9cf8177 100644 --- a/dbus/dbusconfiguration.cpp +++ b/dbus/dbusconfiguration.cpp @@ -182,10 +182,6 @@ void init(sdbusplus::bus::bus& bus) try { auto resp = bus.call(mapper); - if (resp.is_method_error()) - { - throw std::runtime_error("ObjectMapper Call Failure"); - } resp.read(respData); } catch (sdbusplus::exception_t&) @@ -249,11 +245,6 @@ void init(sdbusplus::bus::bus& bus) try { auto responce = bus.call(endpoint); - if (responce.is_method_error()) - { - throw std::runtime_error("Error getting managed objects from " + - owner.first); - } responce.read(configuration); } catch (sdbusplus::exception_t&) diff --git a/dbus/util.cpp b/dbus/util.cpp index 3e3597b..733aff4 100644 --- a/dbus/util.cpp +++ b/dbus/util.cpp @@ -117,10 +117,7 @@ bool DbusHelper::thresholdsAsserted(sdbusplus::bus::bus& bus, try { auto msg = bus.call(critical); - if (!msg.is_method_error()) - { - msg.read(criticalMap); - } + msg.read(criticalMap); } catch (sdbusplus::exception_t&) { |

