cleanup code
authorBernhard Tittelbach <xro@realraum.at>
Sat, 5 Oct 2013 00:35:21 +0000 (00:35 +0000)
committerBernhard Tittelbach <xro@realraum.at>
Sat, 5 Oct 2013 00:35:21 +0000 (00:35 +0000)
go/r3-netstatus/main.go
go/r3-netstatus/sockettoevent.go [deleted file]

index afebd58..0a4b0c9 100644 (file)
@@ -117,6 +117,12 @@ func EventToXMPP(ps *pubsub.PubSub, xmpp_presence_events_chan_ chan <- interface
        }
 }
 
+func ParseZMQr3Event(lines [][]byte, ps *pubsub.PubSub) {
+    evnt, pubsubcat, err := r3events.UnmarshalByteByte2Event(lines)
+    if err != nil { return }
+    ps.Pub(evnt, pubsubcat)
+}
+
 func main() {
     if enable_syslog_ { LogEnableSyslog(); r3xmppbot.LogEnableSyslog() }
     if enable_debug_ { LogEnableDebuglog(); r3xmppbot.LogEnableDebuglog() }
diff --git a/go/r3-netstatus/sockettoevent.go b/go/r3-netstatus/sockettoevent.go
deleted file mode 100644 (file)
index 7165ac6..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// (c) Bernhard Tittelbach, 2013
-
-package main
-
-import (
-    pubsub "github.com/tuxychandru/pubsub"
-    r3events "svn.spreadspace.org/realraum/go.svn/r3-eventbroker_zmq/r3events"
-    )
-
-func ParseZMQr3Event(lines [][]byte, ps *pubsub.PubSub) {
-    evnt, pubsubcat, err := r3events.UnmarshalByteByte2Event(lines)
-    if err != nil { return }
-    ps.Pub(evnt, pubsubcat)
-}