Bug 880078: Remove no-longer-used variable 'secFlag' from XPCWrappedNative::CallMethod. r=bholley

This commit is contained in:
Daniel Holbert 2013-06-06 00:27:16 -07:00
Родитель debecfa94e
Коммит 419d3f37bc
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -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: