aboutsummaryrefslogtreecommitdiff
path: root/exec.go
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-05-25 17:48:34 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-05-25 17:48:34 +0900
commit71fae4cd971ca9a0964b7ec5669b142dd1e2625b (patch)
treeb515da3528264c722c7791a9680c36c6f6659ee0 /exec.go
parent0ba75a92cf0672a361b8880f9f3a6c6fd55470ce (diff)
downloadkati-71fae4cd971ca9a0964b7ec5669b142dd1e2625b.tar.gz
Add fileutil.go
Diffstat (limited to 'exec.go')
-rw-r--r--exec.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/exec.go b/exec.go
index 6afd0e8..c419be1 100644
--- a/exec.go
+++ b/exec.go
@@ -4,7 +4,6 @@ import (
"bytes"
"fmt"
"io"
- "os"
"path/filepath"
"strings"
"sync"
@@ -127,15 +126,6 @@ func (v AutoSuffixFVar) Eval(w io.Writer, ev *Evaluator) {
}
}
-// TODO(ukai): use time.Time?
-func getTimestamp(filename string) int64 {
- st, err := os.Stat(filename)
- if err != nil {
- return -2
- }
- return st.ModTime().Unix()
-}
-
func (ex *Executor) makeJobs(n *DepNode, neededBy *Job) error {
output := n.Output
if neededBy != nil {