Skip to content

Commit 1481950

Browse files
committed
Remove obsolete fn macros OBJequal OBJfree OBJreference OBJget_data
These macros were defined in object.h as being "for backwards compatibility". The only code that used them was in #if 0...#endif blocks. Additionally, OBJfree is mentioned in express/Changes, dated 1992, as being unnecessary. It seems safe to remove all of this code - it is very very old.
1 parent 0073b38 commit 1481950

File tree

5 files changed

+1
-1313
lines changed

5 files changed

+1
-1313
lines changed

include/express/object.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,7 @@ GLOBAL SCL_EXPRESS_EXPORT struct Object * OBJ;
104104
#define OBJtype_is_oneof(_type_,class) (OBJ[(int)_type_].bits & (class))
105105
#define OBJget_name(obj,type) (OBJget_symbol(obj,type)->name)
106106

107-
/* for backwards compatibility */
108-
#define OBJequal(x,y) ((x) == (y))
109-
#define OBJfree(x)
110-
#define OBJreference(x) (x)
111-
#define OBJget_data(obj,type,err) (obj)
107+
/* removed #define statements for obsolete fn macros OBJequal OBJfree OBJreference OBJget_data */
112108

113109
/***********************/
114110
/* function prototypes */

0 commit comments

Comments
 (0)