From 4391aa53366ca4bcfc99016336fae529e0ef14e8 Mon Sep 17 00:00:00 2001 From: Lawrence Meckan Date: Wed, 25 Apr 2018 12:05:01 +1000 Subject: [PATCH] Revert for time being --- src/sass.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/sass.c b/src/sass.c index cdd4119..ed71db9 100644 --- a/src/sass.c +++ b/src/sass.c @@ -36,8 +36,6 @@ typedef struct sass_object { bool map_embed; bool map_contents; char* map_root; - Sass_C_Function_List functions; - Sass_C_Import_Callback importer; #if PHP_MAJOR_VERSION >= 7 zend_object zo; #endif @@ -144,8 +142,6 @@ PHP_METHOD(Sass, __construct) obj->map_contents = false; obj->omit_map_url = true; obj->precision = 5; - obj->functions = NULL; - obj->importer = NULL; } @@ -157,12 +153,6 @@ void set_options(sass_object *this, struct Sass_Context *ctx) sass_option_set_output_style(opts, this->style); sass_option_set_is_indented_syntax_src(opts, this->indent); if (this->include_paths != NULL) { - char *p; - p = strtok (this->include_paths,","); - while (p!= NULL) - { - this->include_paths = strepl(this->include_paths,',',':'); - } sass_option_set_include_path(opts, this->include_paths); } sass_option_set_source_comments(opts, this->comments); @@ -182,18 +172,6 @@ void set_options(sass_object *this, struct Sass_Context *ctx) } -char *strepl(char *cs, char d1, char d2){ - char *tmp=cs; - while(*tmp) - if(*tmp == d1) - *tmp++ = d2; - else - *tmp++; - - *tmp='\0'; - return cs; -} - /** * $sass->parse(string $source, [ ]); *