summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--href.go9
-rw-r--r--main.go11
2 files changed, 0 insertions, 20 deletions
diff --git a/href.go b/href.go
index 44a6efb..811a963 100644
--- a/href.go
+++ b/href.go
@@ -3,7 +3,6 @@ package main
import (
"net/http"
"strings"
- "fmt"
"golang.org/x/net/html"
)
@@ -46,11 +45,3 @@ func FetchTitle(url string) (string, error) {
return title, nil
}
-
-func showLinks() (s string) {
- for k, v := range cache {
- s += fmt.Sprintf("%v (%v) ", k, v)
- }
- return
-
-}
diff --git a/main.go b/main.go
index 8a02ea3..0b4c0eb 100644
--- a/main.go
+++ b/main.go
@@ -36,7 +36,6 @@ type (
Theo struct{ Command }
Help struct{ Command }
Top struct{ Command }
- Links struct{ Command }
)
var (
@@ -97,10 +96,6 @@ func (_ Top) Handle(conn *irc.Conn, line *irc.Line) {
conn.Privmsg(line.Target(), s)
}
-func (_ Links) Handle(conn *irc.Conn, line *irc.Line) {
- conn.Privmsg(line.Nick, showLinks())
-}
-
func privmsg(conn *irc.Conn, line *irc.Line) {
f := strings.Fields(line.Text())
@@ -182,12 +177,6 @@ func init() {
Help: "Top 10 flooder",
},
})
- Register("links", Links{
- Command{
- Help: "Show cached links",
- },
- })
-
}
func main() {