List for cgit developers and users
 help / color / mirror / Atom feed
From: john at keeping.me.uk (John Keeping)
Subject: [PATCH 3/3] html: remove unused functions
Date: Sun, 12 Mar 2017 15:49:04 +0000	[thread overview]
Message-ID: <736e0ad67d1819547c3c8ab08d4857dc65d7bc2b.1489333714.git.john@keeping.me.uk> (raw)
In-Reply-To: <db13fe9fe43ffd657fc4a0eef9c9d2ad6944b68f.1489333714.git.john@keeping.me.uk>

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



      parent reply	other threads:[~2017-03-12 15:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-12 15:49 [PATCH 1/3] tests: document handling of repository names with spaces john
2017-03-12 15:49 ` [PATCH 2/3] ui-{repolist,atom}: fix repository URL escaping john
2017-03-12 15:49 ` john [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=736e0ad67d1819547c3c8ab08d4857dc65d7bc2b.1489333714.git.john@keeping.me.uk \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).