summaryrefslogtreecommitdiff
path: root/tmp/proto.go
diff options
context:
space:
mode:
Diffstat (limited to 'tmp/proto.go')
-rw-r--r--tmp/proto.go33
1 files changed, 0 insertions, 33 deletions
diff --git a/tmp/proto.go b/tmp/proto.go
deleted file mode 100644
index 104f1fa..0000000
--- a/tmp/proto.go
+++ /dev/null
@@ -1,33 +0,0 @@
-package server
-
-type proto interface {
- Open() (proto, error)
- Close() error
- String() string
-}
-
-func protoShow(r *request) {
- r.c.s.proto.show(r.out)
-}
-
-func protoDel(r *request) {
- r.expect(1)
-
- if !r.c.s.proto.del(r.args[0]) {
- r.Fatal("no such proto")
- }
-}
-
-func protoRename(r *request) {
- r.expect(2)
-
- if !r.c.s.proto.rename(r.args[0], r.args[1]) {
- r.Fatal("rename failed")
- }
-}
-
-func init() {
- newCmd(protoDel, "proto", "del")
- newCmd(protoShow, "proto", "show")
- newCmd(protoRename, "proto", "rename")
-}