X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=src%2Fstruct.c;h=31be1e661b7da8351423c64d5c83903976c82b0f;hp=7f6fd4137cc8d959f268d251535c4db596ec2cac;hb=959c309bcf37cbb534aaa04f27ccfdb6c9453396;hpb=ecd73ba08f9b8721742ae5dbb72e1c4261574b36 diff --git a/src/struct.c b/src/struct.c index 7f6fd41..31be1e6 100644 --- a/src/struct.c +++ b/src/struct.c @@ -45,13 +45,3 @@ WORD startptr = 0x0; /* 実行終了番地 */ WORD endptr = 0x0; - -/* ハッシュ値を取得する */ -unsigned hash(const char *key, int size){ - unsigned hashval; - - for(hashval = 0; *key != '\0'; key++){ - hashval = *key + 31 * hashval; - } - return hashval % size; -}