X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_nameval.c;h=a4ed2973526ba259375199b480f01d7c49298dcd;hp=2081f21dacd3a3e21e666c00fcecc0d3c59400d6;hb=eadf0b4ff9a673b3acff35430c6f9edc48c616a6;hpb=de6470acd795b2daab5372dd4a9edce3f186afea diff --git a/yaffs_nameval.c b/yaffs_nameval.c index 2081f21..a4ed297 100644 --- a/yaffs_nameval.c +++ b/yaffs_nameval.c @@ -190,37 +190,6 @@ int nval_list(const char *xb, int xb_size, char *buf, int bsize) return ncopied; } -#if 0 -int nval_load(char *xb, int xb_size, const char *src, int src_size) -{ - int tx_size; - int used; - - tx_size = xb_size; - if(tx_size > src_size) - tx_size = src_size; - - memcpy(xb,src,tx_size); - used = nval_used(xb, xb_size); - - if( used < xb_size) - memset(xb+ used, 0, xb_size - used); - return used; -} - -int nval_save(const char *xb, int xb_size, char *dest, int dest_size) -{ - int tx_size; - - tx_size = xb_size; - if(tx_size > dest_size) - tx_size = dest_size; - - memcpy(dest,xb,tx_size); - return tx_size; -} -#endif - int nval_hasvalues(const char *xb, int xb_size) {