summaryrefslogtreecommitdiff
path: root/tmp/proto.go
diff options
context:
space:
mode:
authorMikhail Osipov <mike.osipov@gmail.com>2020-02-23 16:06:34 +0300
committerMikhail Osipov <mike.osipov@gmail.com>2020-02-23 16:06:34 +0300
commit7f71e4fc69e2b27d8ff6375cc6f4be2092721186 (patch)
tree794c0b8552dbdf90d9eb612428e1868e7b18bd08 /tmp/proto.go
parent4bbdb1b34d9f7e71c0faf6f1943e6bb4ce303af1 (diff)
drop old files
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")
-}