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

Alexandre Julliard julliard at winehq.org
Wed May 13 10:19:44 CDT 2009


Module: wine
Branch: master
Commit: cb9a95f5605d1bf2d40e4fe8ebdc87d8f7aca156
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cb9a95f5605d1bf2d40e4fe8ebdc87d8f7aca156

Author: Francois Gouget <fgouget at free.fr>
Date:   Wed May 13 10:29:35 2009 +0200

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

---

 dlls/ntdll/ntdll_misc.h |    1 -
 dlls/ntdll/virtual.c    |   26 --------------------------
 2 files changed, 0 insertions(+), 27 deletions(-)

diff --git a/dlls/ntdll/ntdll_misc.h b/dlls/ntdll/ntdll_misc.h
index 15df5d0..3e54250 100644
--- a/dlls/ntdll/ntdll_misc.h
+++ b/dlls/ntdll/ntdll_misc.h
@@ -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 );
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index 9d46764..e0a758b 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -1368,32 +1368,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
  */
 NTSTATUS virtual_alloc_thread_stack( TEB *teb, SIZE_T reserve_size, SIZE_T commit_size )




More information about the wine-cvs mailing list