remove depricated ndb functions; they're no longer used by anything. Reference: /n/sources/patch/maybe/ndb-getval Date: Fri May 4 05:26:45 CES 2012 Signed-off-by: quanstro@quanstro.net --- /sys/src/libndb/ndbgetval.c Fri May 4 05:26:12 2012 +++ /sys/src/libndb/ndbgetval.c Fri May 4 05:26:12 2012 @@ -53,24 +53,3 @@ } return nil; } - -Ndbtuple* -ndbgetval(Ndb *db, Ndbs *s, char *attr, char *val, char *rattr, char *buf) -{ - Ndbtuple *t; - char *p; - - p = ndbgetvalue(db, s, attr, val, rattr, &t); - if(p == nil){ - if(buf != nil) - *buf = 0; - } else { - if(buf != nil){ - strncpy(buf, p, Ndbvlen-1); - buf[Ndbvlen-1] = 0; - } - free(p); - } - ndbsetmalloctag(t, getcallerpc(&db)); - return t; -} --- /sys/src/libndb/csgetval.c Fri May 4 05:26:14 2012 +++ /sys/src/libndb/csgetval.c Fri May 4 05:26:13 2012 @@ -85,24 +85,3 @@ return rv; } - -Ndbtuple* -csgetval(char *netroot, char *attr, char *val, char *rattr, char *buf) -{ - Ndbtuple *t; - char *p; - - p = csgetvalue(netroot, attr, val, rattr, &t); - if(p == nil){ - if(buf != nil) - *buf = 0; - } else { - if(buf != nil){ - strncpy(buf, p, Ndbvlen-1); - buf[Ndbvlen-1] = 0; - } - free(p); - } - ndbsetmalloctag(t, getcallerpc(&netroot)); - return t; -} --- /sys/src/libndb/ndblookval.c Fri May 4 05:26:15 2012 +++ /sys/src/libndb/ndblookval.c Fri May 4 05:26:14 2012 @@ -29,16 +29,3 @@ return nil; } - -Ndbtuple* -ndblookval(Ndbtuple *entry, Ndbtuple *line, char *attr, char *to) -{ - Ndbtuple *t; - - t = ndbfindattr(entry, line, attr); - if(t != nil){ - strncpy(to, t->val, Ndbvlen-1); - to[Ndbvlen-1] = 0; - } - return t; -} --- /sys/man/2/ndb Fri May 4 05:26:16 2012 +++ /sys/man/2/ndb Fri May 4 05:26:15 2012 @@ -482,17 +482,3 @@ .L "buffer too short" if the buffer provided isn't long enough for the returned value. -.SH BUGS -.IR Ndbgetval , -.IR csgetval , -and -.I ndblookval -are deprecated versions of -.IR ndbgetvalue , -.IR csgetvalue , -and -.IR ndblookvalue . -They expect a fixed 64 byte long result -buffer and existed when the values of a -.I Ndbtuple -structure were fixed length.