Author: hpoussin
Date: Sat Aug 8 23:50:15 2009
New Revision: 42540
URL:
http://svn.reactos.org/svn/reactos?rev=42540&view=rev
Log:
Remove dead code
Modified:
trunk/reactos/boot/freeldr/freeldr/fs/fs.c
trunk/reactos/boot/freeldr/freeldr/include/fs.h
Modified: trunk/reactos/boot/freeldr/freeldr/fs/fs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/fs/fs…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/fs/fs.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/fs/fs.c [iso-8859-1] Sat Aug 8 23:50:15 2009
@@ -142,41 +142,6 @@
// Do not check for error; this function is
// supposed to always succeed
//
-}
-
-ULONG FsGetFilePointer(PFILE FileHandle)
-{
- ULONG FileId = (ULONG)FileHandle;
- FILEINFORMATION Information;
- LONG ret;
-
- //
- // Query file informations
- //
- ret = ArcGetFileInformation(FileId, &Information);
-
- //
- // Check for error
- //
- if (ret != ESUCCESS || Information.CurrentAddress.HighPart != 0)
- return 0;
-
- //
- // Return file pointer position
- //
- return Information.CurrentAddress.LowPart;
-}
-
-BOOLEAN FsIsEndOfFile(PFILE FileHandle)
-{
- if (FsGetFilePointer(FileHandle) >= FsGetFileSize(FileHandle))
- {
- return TRUE;
- }
- else
- {
- return FALSE;
- }
}
/*
Modified: trunk/reactos/boot/freeldr/freeldr/include/fs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/inclu…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/include/fs.h [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/include/fs.h [iso-8859-1] Sat Aug 8 23:50:15 2009
@@ -54,8 +54,6 @@
BOOLEAN FsReadFile(PFILE FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer);
ULONG FsGetFileSize(PFILE FileHandle);
VOID FsSetFilePointer(PFILE FileHandle, ULONG NewFilePointer);
-ULONG FsGetFilePointer(PFILE FileHandle);
-BOOLEAN FsIsEndOfFile(PFILE FileHandle);
ULONG FsGetNumPathParts(PCSTR Path);
VOID FsGetFirstNameFromPath(PCHAR Buffer, PCSTR Path);