summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-02-05 17:39:07 -0800
committerTom Sepez <tsepez@chromium.org>2015-02-05 17:39:07 -0800
commit65b7a0c8dd14a8e648712fba2a5f70988e12d138 (patch)
tree610c472ea08b6629efd298eb42aaaeddae9282ae /fpdfsdk
parentc6ab1725213a487838cbe03cb08cb5cac4ad956a (diff)
downloadpdfium-65b7a0c8dd14a8e648712fba2a5f70988e12d138.tar.xz
Merge to XFA: Kill off some more unreachable fopen's.
Original Review URL: https://codereview.chromium.org/902943003 TBR=jam@chromium.org Review URL: https://codereview.chromium.org/895903005
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/src/javascript/Document.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/fpdfsdk/src/javascript/Document.cpp b/fpdfsdk/src/javascript/Document.cpp
index 8a5ab6b454..107ce86731 100644
--- a/fpdfsdk/src/javascript/Document.cpp
+++ b/fpdfsdk/src/javascript/Document.cpp
@@ -1158,29 +1158,6 @@ FX_BOOL Document::filesize(OBJ_PROP_PARAMS)
{
if (!vp.IsGetting())return FALSE;
- ASSERT(m_pDocument != NULL);
-
-// CFile file(m_pDocument->GetPath(), CFile::modeRead | CFile::typeBinary | CFile::shareDenyNone);
-// vp << (double)file.GetLength();
-// file.Close();
-
- if ( m_pDocument->GetPath().IsEmpty() == FALSE)
- {
- CFX_ByteString bsStr = CFX_ByteString::FromUnicode( m_pDocument->GetPath() );
- FILE * pFile = NULL;
- pFile = fopen( bsStr.GetBuffer( bsStr.GetLength() ), "rb" );
- if ( pFile )
- {
- fseek( pFile, 0, SEEK_END );
- long lSize = ftell( pFile );
- fclose( pFile );
- pFile = NULL;
-
- vp << (FX_INT32)(lSize);
- return TRUE;
- }
- }
-
vp << 0;
return TRUE;
}