ntdll: virtual_free_system_view() is not used anymore so remove it.

This commit is contained in:
Francois Gouget 2009-05-13 10:29:35 +02:00 committed by Alexandre Julliard
parent ef5f1f5065
commit cb9a95f560
2 changed files with 0 additions and 27 deletions

View File

@ -141,7 +141,6 @@ extern unsigned int DIR_get_drives_info( struct drive_info info[MAX_DOS_DRIVES]
/* virtual memory */
extern void virtual_get_system_info( SYSTEM_BASIC_INFORMATION *info );
extern NTSTATUS virtual_create_system_view( void *base, SIZE_T size, DWORD vprot );
extern SIZE_T virtual_free_system_view( PVOID *addr_ptr );
extern NTSTATUS virtual_alloc_thread_stack( TEB *teb, SIZE_T reserve_size, SIZE_T commit_size );
extern void virtual_clear_thread_stack(void);
extern BOOL virtual_handle_stack_fault( void *addr );

View File

@ -1367,32 +1367,6 @@ NTSTATUS virtual_create_system_view( void *base, SIZE_T size, DWORD vprot )
}
/***********************************************************************
* virtual_free_system_view
*/
SIZE_T virtual_free_system_view( PVOID *addr_ptr )
{
FILE_VIEW *view;
sigset_t sigset;
SIZE_T size = 0;
char *base = ROUND_ADDR( *addr_ptr, page_mask );
server_enter_uninterrupted_section( &csVirtual, &sigset );
if ((view = VIRTUAL_FindView( base, 0 )))
{
TRACE( "freeing %p-%p\n", view->base, (char *)view->base + view->size );
/* return the values that the caller should use to unmap the area */
*addr_ptr = view->base;
/* make sure we don't munmap anything from a reserved area */
if (!wine_mmap_is_in_reserved_area( view->base, view->size )) size = view->size;
view->protect |= VPROT_SYSTEM;
delete_view( view );
}
server_leave_uninterrupted_section( &csVirtual, &sigset );
return size;
}
/***********************************************************************
* virtual_alloc_thread_stack
*/