[PATCH 3/3] html: remove unused functions
John Keeping
john at keeping.me.uk
Sun Mar 12 16:49:04 CET 2017
The previous commit removed the only use of these functions, so let's
remove them.
Signed-off-by: John Keeping <john at keeping.me.uk>
---
html.c | 20 --------------------
html.h | 2 --
2 files changed, 22 deletions(-)
diff --git a/html.c b/html.c
index e7e6e07..e4dbb05 100644
--- a/html.c
+++ b/html.c
@@ -295,26 +295,6 @@ void html_intoption(int value, const char *text, int selected_value)
html("</option>");
}
-void html_link_open(const char *url, const char *title, const char *class)
-{
- html("<a href='");
- html_attr(url);
- if (title) {
- html("' title='");
- html_attr(title);
- }
- if (class) {
- html("' class='");
- html_attr(class);
- }
- html("'>");
-}
-
-void html_link_close(void)
-{
- html("</a>");
-}
-
void html_fileperm(unsigned short mode)
{
htmlf("%c%c%c", (mode & 4 ? 'r' : '-'),
diff --git a/html.h b/html.h
index 1b24e55..e0f5195 100644
--- a/html.h
+++ b/html.h
@@ -27,8 +27,6 @@ extern void html_header_arg_in_quotes(const char *txt);
extern void html_hidden(const char *name, const char *value);
extern void html_option(const char *value, const char *text, const char *selected_value);
extern void html_intoption(int value, const char *text, int selected_value);
-extern void html_link_open(const char *url, const char *title, const char *class);
-extern void html_link_close(void);
extern void html_fileperm(unsigned short mode);
extern int html_include(const char *filename);
--
2.12.0.415.g6c14041932.dirty
More information about the CGit
mailing list