зеркало из https://github.com/mozilla/gecko-dev.git
Bug 880078: Remove no-longer-used variable 'secFlag' from XPCWrappedNative::CallMethod. r=bholley
This commit is contained in:
Родитель
debecfa94e
Коммит
419d3f37bc
|
@ -2206,20 +2206,16 @@ XPCWrappedNative::CallMethod(XPCCallContext& ccx,
|
||||||
|
|
||||||
// set up the method index and do the security check if needed
|
// set up the method index and do the security check if needed
|
||||||
|
|
||||||
uint32_t secFlag;
|
|
||||||
uint32_t secAction;
|
uint32_t secAction;
|
||||||
|
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case CALL_METHOD:
|
case CALL_METHOD:
|
||||||
secFlag = nsIXPCSecurityManager::HOOK_CALL_METHOD;
|
|
||||||
secAction = nsIXPCSecurityManager::ACCESS_CALL_METHOD;
|
secAction = nsIXPCSecurityManager::ACCESS_CALL_METHOD;
|
||||||
break;
|
break;
|
||||||
case CALL_GETTER:
|
case CALL_GETTER:
|
||||||
secFlag = nsIXPCSecurityManager::HOOK_GET_PROPERTY;
|
|
||||||
secAction = nsIXPCSecurityManager::ACCESS_GET_PROPERTY;
|
secAction = nsIXPCSecurityManager::ACCESS_GET_PROPERTY;
|
||||||
break;
|
break;
|
||||||
case CALL_SETTER:
|
case CALL_SETTER:
|
||||||
secFlag = nsIXPCSecurityManager::HOOK_SET_PROPERTY;
|
|
||||||
secAction = nsIXPCSecurityManager::ACCESS_SET_PROPERTY;
|
secAction = nsIXPCSecurityManager::ACCESS_SET_PROPERTY;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче