From: Zoltan Varga Date: Mon, 6 Apr 2015 18:46:29 +0000 (-0400) Subject: [runtime] Remove unused io-layer/system.{c,h}. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=8d5eb9ec60df30a100001d87cd477ce8d908c134;p=mono.git [runtime] Remove unused io-layer/system.{c,h}. --- diff --git a/mono/io-layer/Makefile.am b/mono/io-layer/Makefile.am index bca6a114399..47e31071494 100644 --- a/mono/io-layer/Makefile.am +++ b/mono/io-layer/Makefile.am @@ -28,7 +28,6 @@ OTHER_H = \ semaphores.h \ sockets.h \ status.h \ - system.h \ threads.h \ timefuncs.h \ types.h \ @@ -83,8 +82,6 @@ OTHER_SRC = \ socket-private.h \ socket-wrappers.h \ status.h \ - system.c \ - system.h \ threads.h \ thread-private.h \ timefuncs.c \ diff --git a/mono/io-layer/system.c b/mono/io-layer/system.c deleted file mode 100644 index 3a336ce2cef..00000000000 --- a/mono/io-layer/system.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * system.c: System information - * - * Author: - * Dick Porter (dick@ximian.com) - * - * (C) 2002 Ximian, Inc. - */ - -#include -#include -#include -#include -#include - -#include "mono/io-layer/wapi.h" - -void GetSystemInfo(WapiSystemInfo *info) -{ - info->dwPageSize=getpagesize(); - - /* Fill in the rest of this junk. Maybe with libgtop */ -#ifdef _SC_NPROCESSORS_ONLN - info->dwNumberOfProcessors = sysconf (_SC_NPROCESSORS_ONLN); - if (info->dwNumberOfProcessors <= 0) - info->dwNumberOfProcessors = 1; -#else - info->dwNumberOfProcessors = 1; -#endif -} - - diff --git a/mono/io-layer/system.h b/mono/io-layer/system.h deleted file mode 100644 index 390b1776b7d..00000000000 --- a/mono/io-layer/system.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * system.h: System information - * - * Author: - * Dick Porter (dick@ximian.com) - * - * (C) 2002 Ximian, Inc. - */ - -#ifndef _WAPI_SYSTEM_H_ -#define _WAPI_SYSTEM_H_ - -#include - -G_BEGIN_DECLS - -typedef struct _WapiSystemInfo WapiSystemInfo; - -struct _WapiSystemInfo -{ - union _anon_union - { - guint32 dwOemId; - struct _anon_struct - { - guint16 wProcessorArchitecture; - guint16 wReserved; - } _anon_struct; - } _anon_union; - - guint32 dwPageSize; - gpointer lpMinimumApplicationAddress; - gpointer lpMaximumApplicationAddress; - guint32 /*_PTR?*/ dwActiveProcessorMask; - guint32 dwNumberOfProcessors; - guint32 dwProcessorType; - guint32 dwAllocationGranularity; - guint16 wProcessorLevel; - guint16 wProcessorRevision; -}; - -extern void GetSystemInfo(WapiSystemInfo *info); - -G_END_DECLS -#endif /* _WAPI_SYSTEM_H_ */ diff --git a/mono/io-layer/uglify.h b/mono/io-layer/uglify.h index 120ce317747..aa847569cb8 100644 --- a/mono/io-layer/uglify.h +++ b/mono/io-layer/uglify.h @@ -63,8 +63,6 @@ typedef WapiLargeInteger LARGE_INTEGER; typedef WapiLargeInteger *PLARGE_INTEGER; typedef WapiULargeInteger ULARGE_INTEGER; typedef WapiULargeInteger *PULARGE_INTEGER; -typedef WapiSystemInfo SYSTEM_INFO; -typedef WapiSystemInfo *LPSYSTEM_INFO; typedef WapiFloatingSaveArea FLOATING_SAVE_AREA; typedef WapiFloatingSaveArea *PFLOATING_SAVE_AREA; typedef WapiContext CONTEXT; diff --git a/mono/io-layer/wapi.h b/mono/io-layer/wapi.h index e2c9639c3d4..c2a89920c34 100644 --- a/mono/io-layer/wapi.h +++ b/mono/io-layer/wapi.h @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include