From fa1ddeeb1b33befc9689ade17a6f00e56eddb0f1 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 23 Jun 2015 18:04:33 -0500 Subject: [PATCH] Removed the last vestiges of RSET::get_value() --- documentation/RELEASE_NOTES.html | 7 +++++++ src/ioc/dbStatic/recSup.h | 11 +---------- src/std/rec/eventRecord.c | 11 +---------- 3 files changed, 9 insertions(+), 20 deletions(-) diff --git a/documentation/RELEASE_NOTES.html b/documentation/RELEASE_NOTES.html index df812b2de..d34f07ae6 100644 --- a/documentation/RELEASE_NOTES.html +++ b/documentation/RELEASE_NOTES.html @@ -14,6 +14,13 @@

Changes between 3.15.2 and 3.15.3

+

Removed the last vestiges of RSET::get_value()

+ +

The IOC has not called the get_value() routine in the RSET for a very long +time, but there was still one implementation left in the event record support +code, and a structure definition for one of the original arguments to that +routine was defined in recGbl.h. Both of these have now been removed.

+

Changes between 3.15.1 and 3.15.2

Raised limit on link field length in database files

diff --git a/src/ioc/dbStatic/recSup.h b/src/ioc/dbStatic/recSup.h index 0bea17411..7ff0b2e18 100644 --- a/src/ioc/dbStatic/recSup.h +++ b/src/ioc/dbStatic/recSup.h @@ -30,7 +30,7 @@ typedef struct rset { /* record support entry table */ RECSUPFUN init_record; /*init record */ RECSUPFUN process; /*process record */ RECSUPFUN special; /*special processing */ - RECSUPFUN get_value; /*get value field */ + RECSUPFUN get_value; /*no longer used */ RECSUPFUN cvt_dbaddr; /*cvt dbAddr */ RECSUPFUN get_array_info; RECSUPFUN put_array_info; @@ -52,21 +52,12 @@ typedef struct rset { /* record support entry table */ #define S_rec_outMem (M_recSup| 3) /*Out of Memory*/ -/* Definition os structure for routine get_value */ - -typedef struct valueDes { - long field_type; - long no_elements; - void * pvalue; -}valueDes; - /************************************************************************ * report(FILE fp,void *precord); * init(); * init_record(precord,pass); * process(void *precord); * special(struct dbAddr *paddr, after); - * get_value(precord,struct valueDes *p); * cvt_dbaddr(struct dbAddr *paddr); * get_array_info(paddr,long *no_elements,long *offset); * put_array_info(paddr,nNew); diff --git a/src/std/rec/eventRecord.c b/src/std/rec/eventRecord.c index 9e25f7baa..a7f9c82a9 100644 --- a/src/std/rec/eventRecord.c +++ b/src/std/rec/eventRecord.c @@ -46,7 +46,7 @@ static long init_record(eventRecord *, int); static long process(eventRecord *); static long special(DBADDR *, int); -static long get_value(eventRecord *, struct valueDes *); +#define get_value NULL #define cvt_dbaddr NULL #define get_array_info NULL #define put_array_info NULL @@ -153,15 +153,6 @@ static long special(DBADDR *paddr, int after) return 0; } - -static long get_value(eventRecord *prec, struct valueDes *pvdes) -{ - pvdes->field_type = DBF_STRING; - pvdes->no_elements=1; - pvdes->pvalue = (void *)(&prec->val); - return(0); -} - static void monitor(eventRecord *prec) {