links

lynx-like text mode web browser
git clone anongit@rnpnr.xyz:links.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 19e882d4ec6d36b79307859c590a7b64bc0fd3bc
Parent: d0f97c6b03f4feec0a708a08d1e47d8713c70b9e
Author: Randy Palamar
Date:   Thu,  1 Dec 2022 19:45:24 -0700

links.h: remove two more unneeded functions

Diffstat:
Mlinks.h | 15+--------------
1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/links.h b/links.h @@ -1079,11 +1079,7 @@ struct term_spec { extern struct list_head term_specs; extern struct list_head terminals; -static inline int -term_charset(struct terminal *term) -{ - return 0; -} +#define term_charset(a) 0 int hard_write(int, const unsigned char *, int); int hard_read(int, unsigned char *, int); @@ -1425,15 +1421,6 @@ struct document_options { }; static inline void -color2rgb(struct rgb *rgb, int color) -{ - memset(rgb, 0, sizeof(struct rgb)); - rgb->r = (color >> 16) & 0xff; - rgb->g = (color >> 8) & 0xff; - rgb->b = color & 0xff; -} - -static inline void ds2do(struct document_setup *ds, struct document_options *doo, int col) { doo->assume_cp = ds->assume_cp;