1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Don't depend on View in Worker.

This commit is contained in:
Bartosz Taudul
2020-05-23 15:53:18 +02:00
parent 2f35c785ee
commit 18b2e3e5be
3 changed files with 11 additions and 12 deletions
-10
View File
@@ -15,14 +15,4 @@ bool SourceFileValid( const char* fn, uint64_t olderThan, const View& view, cons
return false;
}
bool SourceFileValid( const char* fn, uint64_t olderThan )
{
struct stat buf;
if( stat( fn, &buf ) == 0 && ( buf.st_mode & S_IFREG ) != 0 )
{
return (uint64_t)buf.st_mtime < olderThan;
}
return false;
}
}