Merge branch 'en/remove-stripspace'
authorJunio C Hamano <gitster@pobox.com>
Wed, 13 Dec 2017 21:28:58 +0000 (13:28 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Dec 2017 21:28:58 +0000 (13:28 -0800)
An internal function that was left for backward compatibility has
been removed, as there is no remaining callers.

* en/remove-stripspace:
strbuf: remove unused stripspace function alias

strbuf.h
index 0a74acb2369ac26cb56b05a953171330c3abe652..14c8c10d66b9aaa2d8f0c109cf0dd668701cb2eb 100644 (file)
--- a/strbuf.h
+++ b/strbuf.h
@@ -480,15 +480,6 @@ extern int strbuf_normalize_path(struct strbuf *sb);
  */
 extern void strbuf_stripspace(struct strbuf *buf, int skip_comments);
 
-/**
- * Temporary alias until all topic branches have switched to use
- * strbuf_stripspace directly.
- */
-static inline void stripspace(struct strbuf *buf, int skip_comments)
-{
-       strbuf_stripspace(buf, skip_comments);
-}
-
 static inline int strbuf_strip_suffix(struct strbuf *sb, const char *suffix)
 {
        if (strip_suffix_mem(sb->buf, &sb->len, suffix)) {