mirror of https://github.com/restic/restic.git
Remove stale comments from backend/sftp
The preExec and postExec functions were removed in
0bdb131521
from 2018.
This commit is contained in:
parent
4ffd479ba4
commit
23ebec717c
|
@ -116,8 +116,7 @@ func (r *SFTP) clientError() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Open opens an sftp backend as described by the config by running
|
// Open opens an sftp backend as described by the config by running
|
||||||
// "ssh" with the appropriate arguments (or cfg.Command, if set). The function
|
// "ssh" with the appropriate arguments (or cfg.Command, if set).
|
||||||
// preExec is run just before, postExec just after starting a program.
|
|
||||||
func Open(ctx context.Context, cfg Config) (*SFTP, error) {
|
func Open(ctx context.Context, cfg Config) (*SFTP, error) {
|
||||||
debug.Log("open backend with config %#v", cfg)
|
debug.Log("open backend with config %#v", cfg)
|
||||||
|
|
||||||
|
@ -214,8 +213,7 @@ func buildSSHCommand(cfg Config) (cmd string, args []string, err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create creates an sftp backend as described by the config by running "ssh"
|
// Create creates an sftp backend as described by the config by running "ssh"
|
||||||
// with the appropriate arguments (or cfg.Command, if set). The function
|
// with the appropriate arguments (or cfg.Command, if set).
|
||||||
// preExec is run just before, postExec just after starting a program.
|
|
||||||
func Create(ctx context.Context, cfg Config) (*SFTP, error) {
|
func Create(ctx context.Context, cfg Config) (*SFTP, error) {
|
||||||
cmd, args, err := buildSSHCommand(cfg)
|
cmd, args, err := buildSSHCommand(cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue