From bc42960552bc744c6ffa6d024cd1576231d28580 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Mon, 12 Sep 2016 12:33:37 +1000 Subject: [PATCH] strings: Remove CTCP stuff, unused --- irc/strings.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/irc/strings.go b/irc/strings.go index 91dada77..816e4ce9 100644 --- a/irc/strings.go +++ b/irc/strings.go @@ -94,12 +94,3 @@ func NewText(str string) Text { func (text Text) String() string { return string(text) } - -// CTCPText is text suitably escaped for CTCP. -type CTCPText string - -var ctcpEscaper = strings.NewReplacer("\x00", "\x200", "\n", "\x20n", "\r", "\x20r") - -func NewCTCPText(str string) CTCPText { - return CTCPText(ctcpEscaper.Replace(str)) -}