diff options
Diffstat (limited to 'shell.go')
| -rw-r--r-- | shell.go | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -6,7 +6,6 @@ import ( "os" "path/filepath" "strings" - "time" "github.com/go-cmd/cmd" "go.wit.com/lib/gui/shell" @@ -109,13 +108,3 @@ func (repo *Repo) IsDirectory() bool { } return info.IsDir() } - -func (repo *Repo) mtime(filename string) (time.Time, error) { - pathf := filepath.Join(repo.FullPath, filename) - statf, err := os.Stat(pathf) - if err == nil { - return statf.ModTime(), nil - } - log.Log(GITPB, "mtime() os.Stat() error", pathf, err) - return time.Now(), err -} |
