aboutsummaryrefslogtreecommitdiff
path: root/src/statcache.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-01-05 00:22:20 +0000
committerMike Buland <eichlan@xagasoft.com>2010-01-05 00:22:20 +0000
commite809677b1d5a02b93a0be7a9fce8a6b67d0d91be (patch)
tree6fcef1ec9a16c7a14e14181341eb9b775a32e086 /src/statcache.cpp
parent6470ee1a051a4e4fac014162c0d9632487093d08 (diff)
downloadbuild-e809677b1d5a02b93a0be7a9fce8a6b67d0d91be.tar.gz
build-e809677b1d5a02b93a0be7a9fce8a6b67d0d91be.tar.bz2
build-e809677b1d5a02b93a0be7a9fce8a6b67d0d91be.tar.xz
build-e809677b1d5a02b93a0be7a9fce8a6b67d0d91be.zip
Turns out the statcache broke other things, and didn't help at all. It's dead
now...
Diffstat (limited to '')
-rw-r--r--src/statcache.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/statcache.cpp b/src/statcache.cpp
deleted file mode 100644
index 3f5c21f..0000000
--- a/src/statcache.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
1#include "statcache.h"
2
3#include <sys/stat.h>
4
5#include <bu/sio.h>
6
7StatCache::StatCache()
8{
9}
10
11StatCache::~StatCache()
12{
13}
14
15time_t StatCache::mtime( const Bu::FString &sFileName )
16{
17 try
18 {
19 return hMTime.get( sFileName );
20 } catch( ... )
21 {
22 struct stat s;
23 stat( sFileName.getStr(), &s );
24 hMTime.insert( sFileName, s.st_mtime );
25 return s.st_mtime;
26 }
27}
28