From d88253df42157df3d112122c3551b0969e9ce8a0 Mon Sep 17 00:00:00 2001 From: Nathan Kinder Date: Thu, 9 Sep 2010 10:18:59 -0700 Subject: Bug 630090 - (cov#11974) Remove unused ACL functions Coverity flagged a memory corruption issue in an old unused ACL function. It is best to just remove these unused functions. The functions removed are: ACL_ParseFile ACL_WriteFile ACL_WriteString ACL_Decompose acl_to_str_* acl_decompose_* --- include/libaccess/aclproto.h | 6 ------ include/public/nsacl/aclapi.h | 7 ------- 2 files changed, 13 deletions(-) (limited to 'include') diff --git a/include/libaccess/aclproto.h b/include/libaccess/aclproto.h index 5f273842..fe6545c8 100644 --- a/include/libaccess/aclproto.h +++ b/include/libaccess/aclproto.h @@ -58,13 +58,7 @@ NSPR_BEGIN_EXTERN_C /********************************************************************* * ACL language and file interfaces *********************************************************************/ - -NSAPI_PUBLIC ACLListHandle_t * ACL_ParseFile(NSErr_t *errp, char *filename); NSAPI_PUBLIC ACLListHandle_t * ACL_ParseString(NSErr_t *errp, char *buffer); -NSAPI_PUBLIC int ACL_Decompose(NSErr_t *errp, char **acl, ACLListHandle_t *acl_list); -NSAPI_PUBLIC int ACL_WriteString(NSErr_t *errp, char **acl, ACLListHandle_t *acllist); -NSAPI_PUBLIC int ACL_WriteFile(NSErr_t *errp, char *filename, ACLListHandle_t *acllist); - /********************************************************************* * ACL Expression construction interfaces diff --git a/include/public/nsacl/aclapi.h b/include/public/nsacl/aclapi.h index 197d9d38..617cabfe 100644 --- a/include/public/nsacl/aclapi.h +++ b/include/public/nsacl/aclapi.h @@ -352,14 +352,7 @@ NSAPI_PUBLIC extern ACLDispatchVector_t *__nsacl_table; /* ACL language and file interfaces */ -#define ACL_ParseFile (*__nsacl_table->f_ACL_ParseFile) #define ACL_ParseString (*__nsacl_table->f_ACL_ParseString) -#define ACL_WriteString (*__nsacl_table->f_ACL_WriteString) -#define ACL_WriteFile (*__nsacl_table->f_ACL_WriteFile) -#define ACL_FileRenameAcl (*__nsacl_table->f_ACL_FileRenameAcl) -#define ACL_FileDeleteAcl (*__nsacl_table->f_ACL_FileDeleteAcl) -#define ACL_FileGetAcl (*__nsacl_table->f_ACL_FileGetAcl) -#define ACL_FileSetAcl (*__nsacl_table->f_ACL_FileSetAcl) /* ACL Expression construction interfaces * These are low-level interfaces that may be useful to those who are not -- cgit