Remove unused code
This commit is contained in:
@@ -70,7 +70,6 @@
|
||||
#define MIN(x, y) ( ((x)<(y))?(x):(y) )
|
||||
#endif
|
||||
|
||||
#include "../includes/libgfshare.h"
|
||||
#include "../includes/utlist.h"
|
||||
#include "../includes/uthash.h"
|
||||
#include "../includes/curve25519.h"
|
||||
@@ -80,34 +79,7 @@
|
||||
#define MAP_FILE 0
|
||||
#endif
|
||||
|
||||
//#define fopen myfopen
|
||||
//#define fclose myfclose
|
||||
//FILE *myfopen(char *fname,char *mode);
|
||||
//int32_t myfclose(FILE *fp);
|
||||
|
||||
struct huffstream { uint8_t *ptr,*buf; uint32_t bitoffset,maski,endpos; uint32_t allocsize:31,allocated:1; };
|
||||
typedef struct huffstream HUFF;
|
||||
|
||||
struct ramcoder
|
||||
{
|
||||
uint32_t cumulativeProb;
|
||||
uint16_t lower,upper,code,underflowBits,lastsymbol,upper_lastsymbol,counter;
|
||||
uint64_t *histo;
|
||||
uint16_t ranges[];
|
||||
};
|
||||
|
||||
#define hrewind(hp) hseek(hp,0,SEEK_SET)
|
||||
int32_t ramcoder_decoder(struct ramcoder *coder,int32_t updateprobs,uint8_t *buf,int32_t maxlen,HUFF *hp,bits256 *seed);
|
||||
int32_t ramcoder_encoder(struct ramcoder *coder,int32_t updateprobs,uint8_t *buf,int32_t len,HUFF *hp,uint64_t *histo,bits256 *seed);
|
||||
//int32_t init_ramcoder(struct ramcoder *coder,HUFF *hp,bits256 *seed);
|
||||
int32_t ramcoder_decompress(uint8_t *data,int32_t maxlen,uint8_t *bits,uint32_t numbits,bits256 seed);
|
||||
int32_t ramcoder_compress(uint8_t *bits,int32_t maxlen,uint8_t *data,int32_t datalen,bits256 seed);
|
||||
uint64_t hconv_bitlen(uint64_t bitlen);
|
||||
void _init_HUFF(HUFF *hp,int32_t allocsize,void *buf);
|
||||
int32_t hgetbit(HUFF *hp);
|
||||
int32_t hputbit(HUFF *hp,int32_t bit);
|
||||
uint64_t hconv_bitlen(uint64_t bitlen);
|
||||
int32_t hseek(HUFF *hp,int32_t offset,int32_t mode);
|
||||
|
||||
#define SCRIPT_OPRETURN 0x6a
|
||||
#define GENESIS_ACCT "1739068987193023818" // NXT-MRCC-2YLS-8M54-3CMAJ
|
||||
|
||||
Reference in New Issue
Block a user