Browse code

Remove some unneeded development code.

Steven Morgan authored on 2015/09/01 07:41:49
Showing 1 changed files
... ...
@@ -3964,22 +3964,6 @@ void cli_yara_free(struct cl_engine * engine)
3964 3964
     }        
3965 3965
 }
3966 3966
 
3967
-#if 0
3968
-int cli_yara_hash_db_file(char * fname)
3969
-{
3970
-    if (yr_hash_table_lookup(db_table, fname, NULL) == NULL) {
3971
-        cli_errmsg("***** ADDING %s\n", fbname);
3972
-        if ((rc = yr_hash_table_add(db_table, fname, NULL, (void*) 1)) != ERROR_SUCCESS) {
3973
-            cli_errmsg("****** Could not add %s to db_table\n", dbname);
3974
-        }
3975
-    } else {
3976
-        cli_warnmsg("cli_loadyara: db file %s already included\n", dbname);
3977
-        return 1;
3978
-    }
3979
-    return 0;
3980
-}
3981
-#endif
3982
-
3983 3967
 //TODO - pua? dbio?
3984 3968
 static int cli_loadyara(FILE *fs, struct cl_engine *engine, unsigned int *signo, unsigned int options, struct cli_dbio *dbio, const char *filename)
3985 3969
 {
... ...
@@ -3994,12 +3978,6 @@ static int cli_loadyara(FILE *fs, struct cl_engine *engine, unsigned int *signo,
3994 3994
     if((rc = cli_initroots(engine, options)))
3995 3995
         return rc;
3996 3996
 
3997
-#if 0
3998
-    /* eliminate duplicate files */ 
3999
-    if (cli_yara_hash_db_file(dbname))
4000
-        return CL_SUCCESS;
4001
-#endif
4002
-
4003 3997
     compiler.last_result = ERROR_SUCCESS;
4004 3998
     STAILQ_INIT(&compiler.rule_q);
4005 3999
     STAILQ_INIT(&compiler.current_rule_string_q);