]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Remove unused function
authorMatt Joiner <anacrolix@gmail.com>
Tue, 21 Sep 2021 03:05:16 +0000 (13:05 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 21 Sep 2021 03:05:16 +0000 (13:05 +1000)
cmd/torrent/main.go

index f27a8538cbb570986b6b7a05f1e29e5562b7a712..e1fa04b4067210020e96836dc23f574f806ce452 100644 (file)
@@ -195,12 +195,6 @@ type DownloadCmd struct {
        Torrent []string `arity:"+" help:"torrent file path or magnet uri" arg:"positional"`
 }
 
-func stdoutAndStderrAreSameFile() bool {
-       fi1, _ := os.Stdout.Stat()
-       fi2, _ := os.Stderr.Stat()
-       return os.SameFile(fi1, fi2)
-}
-
 func statsEnabled(flags downloadFlags) bool {
        if flags.Stats == nil {
                return flags.Debug