[runtime] Remove unused io-layer/system.{c,h}.
authorZoltan Varga <vargaz@gmail.com>
Mon, 6 Apr 2015 18:46:29 +0000 (14:46 -0400)
committerZoltan Varga <vargaz@gmail.com>
Mon, 6 Apr 2015 18:46:46 +0000 (14:46 -0400)
mono/io-layer/Makefile.am
mono/io-layer/system.c [deleted file]
mono/io-layer/system.h [deleted file]
mono/io-layer/uglify.h
mono/io-layer/wapi.h

index bca6a11439994e29a73e8d85316ed73b1d308707..47e31071494b9df89ae82ae2fea109eaa4ab91ee 100644 (file)
@@ -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 (file)
index 3a336ce..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * system.c:  System information
- *
- * Author:
- *     Dick Porter (dick@ximian.com)
- *
- * (C) 2002 Ximian, Inc.
- */
-
-#include <config.h>
-#include <glib.h>
-#include <sys/time.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-#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 (file)
index 390b177..0000000
+++ /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 <glib.h>
-
-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_ */
index 120ce31774778abc0c355b050e52d54b1fe7353e..aa847569cb898c8e9087a5b285955d7cf53e85ae 100644 (file)
@@ -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;
index e2c9639c3d4a57df5634e3a18c0542c4a11ae450..c2a89920c3469295084603cbc06377c335b92199 100644 (file)
@@ -26,7 +26,6 @@
 #include <mono/io-layer/semaphores.h>
 #include <mono/io-layer/sockets.h>
 #include <mono/io-layer/status.h>
-#include <mono/io-layer/system.h>
 #include <mono/io-layer/threads.h>
 #include <mono/io-layer/timefuncs.h>
 #include <mono/io-layer/versioninfo.h>