From bbf6fe2fd069ef89f73ecc3fe3ec2000833f05f4 Mon Sep 17 00:00:00 2001 From: sijanec Date: Sat, 3 Apr 2021 23:15:48 +0200 Subject: initial release --- src/structs.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/structs.c') diff --git a/src/structs.c b/src/structs.c index fa4228c..b99f1eb 100644 --- a/src/structs.c +++ b/src/structs.c @@ -33,8 +33,7 @@ struct sc_result { char * url; /* yesfree */ char * desc; /* yesfree */ char * title; /* yesfree */ - time_t date; /* some search engines like to extract a date from a website, store that here */ - char * html; /* yesfree - cached generated html output of said result or NULL before it's created */ + time_t date; /* some search engines like to extract a date from a website, store that here - not implemented */ unsigned short int rating; /* some search engines like to extract a rating from a website, store that here */ /* not implementd */ unsigned short int rating_max; /* max rating when above is used /\ */ /* not implemented yet */ }; @@ -48,7 +47,6 @@ int sc_result_free (struct sc_result * r) { free(r->url); free(r->desc); free(r->title); - free(r->html); free(r); return 1; } @@ -58,7 +56,6 @@ struct sc_query { char * string; /* yesfree - query string, stripped of any excess characters that should be excluded from indexing */ time_t lookup_time; /* time of last lookup */ unsigned char engines; /* with what engine(s) was the query done - bitmask - if there are results from multiple engines */ - char * html; /* yesfree - cached generated HTML output of the result or NULL before it's created */ }; struct sc_query * sc_query_init () { struct sc_query * q = calloc(1, sizeof(struct sc_query)); @@ -74,7 +71,6 @@ int sc_query_free (struct sc_query * q) { if (!q) return -1; free(q->string); /* if they were not alloced, they are NULL, if they were free'd somewhere else, they are also set to NULL */ - free(q->html); /* setting to NULL here is not necessary, as we'll never use this query struct again */ for (size_t i = 0; i < q->results_sizeof; i++) sc_result_free(q->results[i]); free(q); -- cgit v1.2.3