@@ -76,18 +76,18 @@ namespace Sass {
76
76
}
77
77
78
78
79
- static thread_local std::unordered_map<
80
- sass::string, bool > cached;
79
+ // static thread_local std::unordered_map<
80
+ // sass::string, bool> cached;
81
81
82
82
// test if path exists and is a file
83
83
// ToDo: Move the cache to context for thread safety
84
84
bool file_exists (const sass::string& path, const sass::string& CWD)
85
85
{
86
- auto it = cached.find (path);
87
- if (it != cached.end ()) {
88
- // std::cerr << "cached reg " << path << "\n";
89
- return it->second ;
90
- }
86
+ // auto it = cached.find(path);
87
+ // if (it != cached.end()) {
88
+ // // std::cerr << "cached reg " << path << "\n";
89
+ // return it->second;
90
+ // }
91
91
#ifdef _WIN32
92
92
wchar_t resolved[32768 ];
93
93
// windows unicode filepaths are encoded in utf16
@@ -110,13 +110,13 @@ namespace Sass {
110
110
bool result = (dwAttrib != INVALID_FILE_ATTRIBUTES
111
111
&& (!(dwAttrib & FILE_ATTRIBUTE_DIRECTORY)));
112
112
// cached[abspath] = result;
113
- cached[path] = result;
113
+ // cached[path] = result;
114
114
return result;
115
115
#else
116
116
struct stat st_buf;
117
117
bool result = (stat (path.c_str (), &st_buf) == 0 )
118
118
&& (!S_ISDIR (st_buf.st_mode ));
119
- cached[path] = result;
119
+ // cached[path] = result;
120
120
return result;
121
121
#endif
122
122
}
0 commit comments