mirror of https://github.com/pkg/sftp.git
				
				
				
			removed unused code
This commit is contained in:
		
							parent
							
								
									4c7551ad7e
								
							
						
					
					
						commit
						c5050bbe83
					
				|  | @ -1161,10 +1161,6 @@ func TestClientWrite(t *testing.T) { | ||||||
| 
 | 
 | ||||||
| // taken from github.com/kr/fs/walk_test.go
 | // taken from github.com/kr/fs/walk_test.go
 | ||||||
| 
 | 
 | ||||||
| type PathTest struct { |  | ||||||
| 	path, result string |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| type Node struct { | type Node struct { | ||||||
| 	name    string | 	name    string | ||||||
| 	entries []*Node // nil if the entry is a file
 | 	entries []*Node // nil if the entry is a file
 | ||||||
|  |  | ||||||
|  | @ -30,7 +30,6 @@ type Server struct { | ||||||
| 	outMutex      sync.Mutex | 	outMutex      sync.Mutex | ||||||
| 	debugStream   io.Writer | 	debugStream   io.Writer | ||||||
| 	readOnly      bool | 	readOnly      bool | ||||||
| 	lastID        uint32 |  | ||||||
| 	pktChan       chan rxPacket | 	pktChan       chan rxPacket | ||||||
| 	openFiles     map[string]*os.File | 	openFiles     map[string]*os.File | ||||||
| 	openFilesLock sync.RWMutex | 	openFilesLock sync.RWMutex | ||||||
|  |  | ||||||
|  | @ -1,11 +1,6 @@ | ||||||
| package sftp | package sftp | ||||||
| 
 | 
 | ||||||
| import ( | import "testing" | ||||||
| 	"errors" |  | ||||||
| 	"testing" |  | ||||||
| ) |  | ||||||
| 
 |  | ||||||
| var errClientRecvFinished = errors.New("client recv finished") |  | ||||||
| 
 | 
 | ||||||
| func clientServerPair(t *testing.T) (*Client, *Server) { | func clientServerPair(t *testing.T) (*Client, *Server) { | ||||||
| 	c, s := netPipe(t) | 	c, s := netPipe(t) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue