Skip to contentSkip to conversation

strbuf: Remove unused stripspace function alias

PATCH In review Elijah Newren 2 participants 2 messages Nov 29, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 strbuf: Remove unused stripspace function alias

In commit 63af4a8446 ("strbuf: make stripspace() part of strbuf", 2015-10-16), stripspace() was moved to strbuf and renamed to strbuf_stripspace(). A "temporary" alias was added for the old name until all topic branches had time to switch over. They have had time, so remove the old alias.

---
 strbuf.h | 9 ---------
 1 file changed, 9 deletions(-)
strbuf.h +0 -9
index 0a74acb236..14c8c10d66 100644
@@ -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)) {
Signature · 1 line
2.15.0.408.g850bc54b15
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Elijah Newren

In commit 63af4a8446 ("strbuf: make stripspace() part of strbuf", 2015-10-16), stripspace() was moved to strbuf and renamed to strbuf_stripspace(). A "temporary" alias was added for the old name until all topic branches had time to switch over. They have had time, so remove the old alias.

Thanks!