1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-10 05:13:45 +00:00

build: remove unused code spotted by the deadcode linter

This commit is contained in:
Nick Craig-Wood
2018-05-04 15:31:55 +01:00
parent cb5bd47e61
commit 1320e84bc2
18 changed files with 15 additions and 134 deletions

View File

@@ -19,7 +19,6 @@ import (
"fmt"
"io"
"path"
"regexp"
"strings"
"sync"
"time"
@@ -114,9 +113,6 @@ func (f *Fs) Features() *fs.Features {
return f.features
}
// Pattern to match a mega path
var matcher = regexp.MustCompile(`^([^/]*)(.*)$`)
// parsePath parses an mega 'url'
func parsePath(path string) (root string) {
root = strings.Trim(path, "/")