summaryrefslogtreecommitdiff
path: root/file_io
diff options
context:
space:
mode:
authorIvan Zhakov <ivan@apache.org>2022-06-17 12:37:48 +0000
committerIvan Zhakov <ivan@apache.org>2022-06-17 12:37:48 +0000
commitc8bd7737e452569ea3d3fe9428e8bae94b3a70a4 (patch)
treecbde3d78b841aba5daa832c21a8ce99680c84b95 /file_io
parentc7e8584adfdafae72a008f6867b89b1caeaac784 (diff)
downloadapr-c8bd7737e452569ea3d3fe9428e8bae94b3a70a4.tar.gz
win32: Remove unused ANSI compatibility code.
* file_io/win32/filestat.c (more_finfo): Remove code to handle MORE_OF_FSPEC. * include/arch/win32/apr_arch_file_io.h (MORE_OF_FSPEC): Remove. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902014 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r--file_io/win32/filestat.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/file_io/win32/filestat.c b/file_io/win32/filestat.c
index bd39790c6..292c030dd 100644
--- a/file_io/win32/filestat.c
+++ b/file_io/win32/filestat.c
@@ -299,13 +299,6 @@ apr_status_t more_finfo(apr_finfo_t *finfo, const void *ufile,
if (fix == 6)
wfile[6] = L'C';
}
- else if (whatfile == MORE_OF_FSPEC)
- rv = GetNamedSecurityInfoA((char*)ufile,
- SE_FILE_OBJECT, sinf,
- ((wanted & (APR_FINFO_USER | APR_FINFO_UPROT)) ? &user : NULL),
- ((wanted & (APR_FINFO_GROUP | APR_FINFO_GPROT)) ? &grp : NULL),
- ((wanted & APR_FINFO_PROT) ? &dacl : NULL),
- NULL, &pdesc);
else if (whatfile == MORE_OF_HANDLE)
rv = GetSecurityInfo((HANDLE)ufile,
SE_FILE_OBJECT, sinf,
@@ -354,8 +347,6 @@ apr_status_t more_finfo(apr_finfo_t *finfo, const void *ufile,
SetLastError(NO_ERROR);
if (whatfile == MORE_OF_WFSPEC)
sizelo = GetCompressedFileSizeW((apr_wchar_t*)ufile, &sizehi);
- else if (whatfile == MORE_OF_FSPEC)
- sizelo = GetCompressedFileSizeA((char*)ufile, &sizehi);
else
return APR_EGENERAL; /* should not occur */