Remove redundant try-catch for Tuple::buildFrom() 35/124635/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 12 Apr 2017 04:27:27 +0000 (13:27 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 12 Apr 2017 04:27:27 +0000 (13:27 +0900)
Change-Id: I1efe8b7453e7d37eda63a633b0a845c7bb12fd03
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/client/PlatformManagedStore.cpp

index ace3f7e..f0ae6be 100644 (file)
@@ -80,12 +80,7 @@ int PlatformManagedStore::retrieve(const ContextStoreSearchQuery& query, std::ve
        GVariant* vals = NULL;
        g_variant_get(outParam, "(v)", &vals);
 
-       try {
-               *records = Tuple::buildFrom(vals);
-       } catch (const std::exception& e) {
-               _E("Exception: %s", e.what());
-               error = E_FAILED;
-       }
+       *records = Tuple::buildFrom(vals);
 
        g_variant_unref(outParam);