Skip to content

Commit

Permalink
Merge pull request #562 from jphickey/fix-561-remove-deprecated
Browse files Browse the repository at this point in the history
Fix #561, remove all deprecated code
  • Loading branch information
yammajamma authored Aug 27, 2020
2 parents 9c74b1b + 1f0903d commit 881aa63
Show file tree
Hide file tree
Showing 35 changed files with 0 additions and 2,823 deletions.
16 changes: 0 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,6 @@ set(BSP_SRCLIST
src/bsp/shared/src/bsp_default_symtab.c
)

if (NOT OMIT_DEPRECATED)
list(APPEND BSP_SRCLIST
src/bsp/shared/src/bsp_default_voltab.c
)
endif (NOT OMIT_DEPRECATED)

# Define the external "osal_bsp" static library target
add_library(osal_bsp STATIC
${BSP_SRCLIST}
Expand Down Expand Up @@ -264,16 +258,6 @@ if (OSAL_CONFIG_DEBUG_PRINTF)
endif (OSAL_CONFIG_DEBUG_PRINTF)


# The FPU and interrupt modules are deprecated.
# If the "OMIT_DEPRECATED" switch is set, then these are not built.
if (NOT OMIT_DEPRECATED)
list(APPEND OSAL_SRCLIST
src/os/shared/src/osapi-fpu.c
src/os/shared/src/osapi-interrupts.c
)
endif (NOT OMIT_DEPRECATED)


# Define the external "osal" static library target
# This is a combination of the generic parts with the low level
# system-specific parts
Expand Down
8 changes: 0 additions & 8 deletions src/bsp/shared/inc/bsp-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,6 @@ typedef struct
*/
extern OS_BSP_GlobalData_t OS_BSP_Global;

#ifndef OSAL_OMIT_DEPRECATED
/*
* Volume Table declaration (supplied by BSP; typically defined in bsp_voltab.c)
* @deprecated Use OS File System API to register volumes.
*/
extern OS_VolumeInfo_t OS_VolumeTable[OS_MAX_FILE_SYSTEMS];
#endif

/********************************************************************/
/* INTERNAL BSP IMPLEMENTATION FUNCTIONS */
/********************************************************************/
Expand Down
74 changes: 0 additions & 74 deletions src/bsp/shared/src/bsp_default_voltab.c

This file was deleted.

38 changes: 0 additions & 38 deletions src/os/inc/common_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,44 +96,6 @@
typedef size_t cpusize;
typedef ptrdiff_t cpudiff;

#ifndef OSAL_OMIT_DEPRECATED

/*
* Define the "osalbool" type for backward compatibility.
* This will be removed in a future release.
*/
typedef bool osalbool; /**< @deprecated Use bool */

/*
* Boolean type for compatibility --
*
* Note it is a bad idea to typedef "bool" or "boolean" -- MANY other projects
* and libraries also define a boolean type due to the lack of a standard bool in C89.
* But calling it simply "bool" or "boolean" almost guarantees a namespace conflict
* if trying to use OSAL with one of those other existing projects.
*
* RTEMS 4.11 no longer defines boolean type by default (deprecated) probably also
* due to the high likelihood of name conflicts.
*
* In order to preserve compatibility for apps written against prior versions of
* OSAL, the name "boolean" is typedefed as well, but this may be turned off
* in a future version whenever appropriate.
*/

#if (!defined(_USING_RTEMS_INCLUDES_) || !defined(RTEMS_DEPRECATED_TYPES))
typedef osalbool boolean; /**< @deprecated Use bool */
#endif

#ifndef TRUE /* Boolean true */
#define TRUE true /**< @deprecated Use true */
#endif

#ifndef FALSE /* Boolean false */
#define FALSE false /**< @deprecated Use false */
#endif


#endif /* OSAL_OMIT_DEPRECATED */


#ifndef NULL /* pointer to nothing */
Expand Down
Loading

0 comments on commit 881aa63

Please sign in to comment.