From 68217477633415202f9517ce588330d7c8eb2738 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Fri, 12 Jul 2013 16:38:25 -0700 Subject: [PATCH] remove commented codes --- command.go | 15 --------------- etcd.go | 1 - 2 files changed, 16 deletions(-) diff --git a/command.go b/command.go index f09a4cf96..821bd1a27 100644 --- a/command.go +++ b/command.go @@ -64,21 +64,6 @@ func (c *GetCommand) Apply(server *raft.Server) (interface{}, error) { return etcdStore.Get(c.Key) } -// List command -// type ListCommand struct { -// Prefix string `json:"prefix"` -// } - -// // The name of the list command in the log -// func (c *ListCommand) CommandName() string { -// return "list" -// } - -// // List all the keys have the given prefix path -// func (c *ListCommand) Apply(server *raft.Server) (interface{}, error) { -// return etcdStore.Get(c.Prefix) -// } - // Delete command type DeleteCommand struct { Key string `json:"key"` diff --git a/etcd.go b/etcd.go index 4fa748562..306219aff 100644 --- a/etcd.go +++ b/etcd.go @@ -581,6 +581,5 @@ func registerCommands() { raft.RegisterCommand(&GetCommand{}) raft.RegisterCommand(&DeleteCommand{}) raft.RegisterCommand(&WatchCommand{}) - //raft.RegisterCommand(&ListCommand{}) raft.RegisterCommand(&TestAndSetCommand{}) }