summaryrefslogtreecommitdiffstats
path: root/bridge/mattermost/helper.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-08-20 17:23:57 +0200
committerWim <wim@42.be>2016-08-20 18:08:58 +0200
commite06efbad9f9220626b5c212642dfc3f72ed84475 (patch)
tree6a84fdddaca834fd19673437d3ee5d855f969dc3 /bridge/mattermost/helper.go
parent3311c7f92311362e958486f63014330c7643479c (diff)
downloadmatterbridge-msglm-e06efbad9f9220626b5c212642dfc3f72ed84475.tar.gz
matterbridge-msglm-e06efbad9f9220626b5c212642dfc3f72ed84475.tar.bz2
matterbridge-msglm-e06efbad9f9220626b5c212642dfc3f72ed84475.zip
Remove unused code
Diffstat (limited to 'bridge/mattermost/helper.go')
-rw-r--r--bridge/mattermost/helper.go59
1 files changed, 0 insertions, 59 deletions
diff --git a/bridge/mattermost/helper.go b/bridge/mattermost/helper.go
deleted file mode 100644
index 2caba719..00000000
--- a/bridge/mattermost/helper.go
+++ /dev/null
@@ -1,59 +0,0 @@
-package bmattermost
-
-import (
- "strings"
-)
-
-func tableformatter(nicks []string, nicksPerRow int, continued bool) string {
- result := "|IRC users"
- if continued {
- result = "|(continued)"
- }
- for i := 0; i < 2; i++ {
- for j := 1; j <= nicksPerRow && j <= len(nicks); j++ {
- if i == 0 {
- result += "|"
- } else {
- result += ":-|"
- }
- }
- result += "\r\n|"
- }
- result += nicks[0] + "|"
- for i := 1; i < len(nicks); i++ {
- if i%nicksPerRow == 0 {
- result += "\r\n|" + nicks[i] + "|"
- } else {
- result += nicks[i] + "|"
- }
- }
- return result
-}
-
-func plainformatter(nicks []string, nicksPerRow int) string {
- return strings.Join(nicks, ", ") + " currently on IRC"
-}
-
-func IsMarkup(message string) bool {
- switch message[0] {
- case '|':
- fallthrough
- case '#':
- fallthrough
- case '_':
- fallthrough
- case '*':
- fallthrough
- case '~':
- fallthrough
- case '-':
- fallthrough
- case ':':
- fallthrough
- case '>':
- fallthrough
- case '=':
- return true
- }
- return false
-}