[rtems commit] score: Delete unused SAPI_IO_EXTERN

Sebastian Huber sebh at rtems.org
Mon Mar 14 09:25:06 UTC 2016


Module:    rtems
Branch:    master
Commit:    62d2540daeb8dac70daa94ab490b626930f92009
Changeset: http://git.rtems.org/rtems/commit/?id=62d2540daeb8dac70daa94ab490b626930f92009

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Mar 14 09:40:57 2016 +0100

score: Delete unused SAPI_IO_EXTERN

Update #2559.

---

 cpukit/sapi/Makefile.am        |  2 +-
 cpukit/sapi/include/rtems/io.h |  4 ----
 cpukit/sapi/src/iodata.c       | 26 --------------------------
 3 files changed, 1 insertion(+), 31 deletions(-)

diff --git a/cpukit/sapi/Makefile.am b/cpukit/sapi/Makefile.am
index d6da88c..7377177 100644
--- a/cpukit/sapi/Makefile.am
+++ b/cpukit/sapi/Makefile.am
@@ -27,7 +27,7 @@ EXTRA_DIST = include/rtems/README
 noinst_LIBRARIES = libsapi.a
 libsapi_a_SOURCES = src/extension.c src/extensioncreate.c \
     src/extensiondelete.c src/extensionident.c src/fatal.c src/exinit.c \
-    src/exshutdown.c src/io.c src/ioclose.c src/iocontrol.c src/iodata.c \
+    src/exshutdown.c src/io.c src/ioclose.c src/iocontrol.c \
     src/ioinitialize.c src/ioopen.c src/ioread.c src/ioregisterdriver.c \
     src/iounregisterdriver.c src/iowrite.c src/posixapi.c  \
     src/getversionstring.c \
diff --git a/cpukit/sapi/include/rtems/io.h b/cpukit/sapi/include/rtems/io.h
index 7a105ce..f5876a0 100644
--- a/cpukit/sapi/include/rtems/io.h
+++ b/cpukit/sapi/include/rtems/io.h
@@ -19,10 +19,6 @@
 #ifndef _RTEMS_IO_H
 #define _RTEMS_IO_H
 
-#ifndef SAPI_IO_EXTERN
-#define SAPI_IO_EXTERN extern
-#endif
-
 #include <rtems/rtems/status.h>
 
 #ifdef __cplusplus
diff --git a/cpukit/sapi/src/iodata.c b/cpukit/sapi/src/iodata.c
deleted file mode 100644
index e3291ff..0000000
--- a/cpukit/sapi/src/iodata.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * @file
- *
- * @brief IO Data
- *
- * @ingroup ClassicIO
- */
-
-/*
- *  COPYRIGHT (c) 1989-2007.
- *  On-Line Applications Research Corporation (OAR).
- *
- *  The license and distribution terms for this file may be
- *  found in the file LICENSE in this distribution or at
- *  http://www.rtems.org/license/LICENSE.
- */
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-/* instantiate RTEMS IO manager data */
-#define SAPI_IO_EXTERN
-
-#include <rtems/system.h>
-#include <rtems/io.h>




More information about the vc mailing list