@@ -96,8 +96,6 @@ namespace Sass {
9696 // include_paths.push_back(CWD);
9797
9898 // collect more paths from different options
99- collect_extensions (c_options.extension );
100- collect_extensions (c_options.extensions );
10199 collect_include_paths (c_options.include_path );
102100 collect_include_paths (c_options.include_paths );
103101 collect_plugin_paths (c_options.plugin_path );
@@ -168,37 +166,6 @@ namespace Sass {
168166 {
169167 }
170168
171- void Context::collect_extensions (const char * exts_str)
172- {
173- if (exts_str) {
174- const char * beg = exts_str;
175- const char * end = Prelexer::find_first<PATH_SEP>(beg);
176-
177- while (end) {
178- std::string ext (beg, end - beg);
179- if (!ext.empty ()) {
180- extensions.push_back (ext);
181- }
182- beg = end + 1 ;
183- end = Prelexer::find_first<PATH_SEP>(beg);
184- }
185-
186- std::string ext (beg);
187- if (!ext.empty ()) {
188- extensions.push_back (ext);
189- }
190- }
191- }
192-
193- void Context::collect_extensions (string_list* paths_array)
194- {
195- while (paths_array)
196- {
197- collect_extensions (paths_array->string );
198- paths_array = paths_array->next ;
199- }
200- }
201-
202169 void Context::collect_include_paths (const char * paths_str)
203170 {
204171 if (paths_str) {
@@ -269,20 +236,15 @@ namespace Sass {
269236 // looks for alternatives and returns a list from one directory
270237 std::vector<Include> Context::find_includes (const Importer& import )
271238 {
272- // include configured extensions
273- std::vector<std::string> exts (File::defaultExtensions);
274- if (extensions.size () > 0 ) {
275- exts.insert (exts.end (), extensions.begin (), extensions.end ());
276- }
277239 // make sure we resolve against an absolute path
278240 std::string base_path (rel2abs (import .base_path ));
279241 // first try to resolve the load path relative to the base path
280- std::vector<Include> vec (resolve_includes (base_path, import .imp_path , exts ));
242+ std::vector<Include> vec (resolve_includes (base_path, import .imp_path ));
281243 // then search in every include path (but only if nothing found yet)
282244 for (size_t i = 0 , S = include_paths.size (); vec.size () == 0 && i < S; ++i)
283245 {
284246 // call resolve_includes and individual base path and append all results
285- std::vector<Include> resolved (resolve_includes (include_paths[i], import .imp_path , exts ));
247+ std::vector<Include> resolved (resolve_includes (include_paths[i], import .imp_path ));
286248 if (resolved.size ()) vec.insert (vec.end (), resolved.begin (), resolved.end ());
287249 }
288250 // return vector
@@ -403,14 +365,6 @@ namespace Sass {
403365 // process the resolved entry
404366 else if (resolved.size () == 1 ) {
405367 bool use_cache = c_importers.size () == 0 ;
406- if (resolved[0 ].deprecated ) {
407- // emit deprecation warning when import resolves to a .css file
408- deprecated (
409- " Including .css files with @import is non-standard behaviour which will be removed in future versions of LibSass." ,
410- " Use a custom importer to maintain this behaviour. Check your implementations documentation on how to create a custom importer." ,
411- true , pstate
412- );
413- }
414368 // use cache for the resource loading
415369 if (use_cache && sheets.count (resolved[0 ].abs_path )) return resolved[0 ];
416370 // try to read the content of the resolved file entry
0 commit comments