From: Lukasz Bardeli Date: Fri, 15 Nov 2019 11:38:30 +0000 (+0100) Subject: [Tizen] Remove unused DATABASE_ERROR from code X-Git-Tag: accepted/tizen/unified/20191122.122403~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4a4829f5393dcf751670cde5bc28f55fe00f497;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Tizen] Remove unused DATABASE_ERROR from code [Verification] Code compiles without error Change-Id: Ic79afa711a55c9a50790242c5727a9a68f107c4f Signed-off-by: Lukasz Bardeli --- diff --git a/src/common/platform_result.h b/src/common/platform_result.h index 4b69f1e..2a76af7 100644 --- a/src/common/platform_result.h +++ b/src/common/platform_result.h @@ -63,7 +63,6 @@ enum class ErrorCode : int { IO_ERR = 101, PERMISSION_DENIED_ERR = 102, SERVICE_NOT_AVAILABLE_ERR = 103, - DATABASE_ERR = 104, VERIFICATION_ERR = 105, // Error codes specific for plugins diff --git a/src/common/tizen_result.cc b/src/common/tizen_result.cc index 8508ae6..cbc690b 100644 --- a/src/common/tizen_result.cc +++ b/src/common/tizen_result.cc @@ -80,7 +80,6 @@ DefineErrorClass(InvalidValuesError); DefineErrorClass(IoError); DefineErrorClass(PermissionDeniedError); DefineErrorClass(ServiceNotAvailableError); -DefineErrorClass(DatabaseError); DefineErrorClass(VerificationError); DefineErrorClass(OperationCanceledError); DefineErrorClass(UnknownError); diff --git a/src/common/tizen_result.h b/src/common/tizen_result.h index aa45ca7..bd67d01 100644 --- a/src/common/tizen_result.h +++ b/src/common/tizen_result.h @@ -83,7 +83,6 @@ DeclareErrorClass(InvalidValuesError, ErrorCode::INVALID_VALUES_ERR); DeclareErrorClass(IoError, ErrorCode::IO_ERR); DeclareErrorClass(PermissionDeniedError, ErrorCode::PERMISSION_DENIED_ERR); DeclareErrorClass(ServiceNotAvailableError, ErrorCode::SERVICE_NOT_AVAILABLE_ERR); -DeclareErrorClass(DatabaseError, ErrorCode::DATABASE_ERR); DeclareErrorClass(VerificationError, ErrorCode::VERIFICATION_ERR); DeclareErrorClass(OperationCanceledError, ErrorCode::OPERATION_CANCELED_ERR); DeclareErrorClass(UnknownError, ErrorCode::UNKNOWN_ERR); diff --git a/src/utils/utils_api.js b/src/utils/utils_api.js index 217ca35..ff2d257 100644 --- a/src/utils/utils_api.js +++ b/src/utils/utils_api.js @@ -1457,7 +1457,6 @@ var errors = { IO_ERR: 101, PERMISSION_DENIED_ERR: 102, SERVICE_NOT_AVAILABLE_ERR: 103, - DATABASE_ERR: 104, VERIFICATION_ERR: 105 }; @@ -1494,7 +1493,6 @@ code_to_name[errors['INVALID_VALUES_ERR']] = 'InvalidValuesError'; code_to_name[errors['IO_ERR']] = 'IOError'; code_to_name[errors['PERMISSION_DENIED_ERR']] = 'PermissionDeniedError'; code_to_name[errors['SERVICE_NOT_AVAILABLE_ERR']] = 'ServiceNotAvailableError'; -code_to_name[errors['DATABASE_ERR']] = 'DatabaseError'; code_to_name[errors['VERIFICATION_ERR']] = 'VerificationError'; var name_to_code = {};