File tree Expand file tree Collapse file tree 9 files changed +295
-477
lines changed Expand file tree Collapse file tree 9 files changed +295
-477
lines changed Original file line number Diff line number Diff line change @@ -84,21 +84,6 @@ namespace Sass {
84
84
return has_ns_ && ns_ == " *" ;
85
85
}
86
86
87
- bool SimpleSelector::is_empty_ns () const
88
- {
89
- return !has_ns_ || ns_ == " " ;
90
- }
91
-
92
- bool SimpleSelector::has_empty_ns () const
93
- {
94
- return has_ns_ && ns_ == " " ;
95
- }
96
-
97
- bool SimpleSelector::has_qualified_ns () const
98
- {
99
- return has_ns_ && ns_ != " " && ns_ != " *" ;
100
- }
101
-
102
87
// name query functions
103
88
bool SimpleSelector::is_universal () const
104
89
{
Original file line number Diff line number Diff line change @@ -89,9 +89,6 @@ namespace Sass {
89
89
bool is_ns_eq (const SimpleSelector& r) const ;
90
90
// namespace query functions
91
91
bool is_universal_ns () const ;
92
- bool is_empty_ns () const ;
93
- bool has_empty_ns () const ;
94
- bool has_qualified_ns () const ;
95
92
// name query functions
96
93
bool is_universal () const ;
97
94
virtual bool has_placeholder ();
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ namespace Sass {
22
22
scheduled_crutch(0 ),
23
23
scheduled_mapping(0 ),
24
24
in_custom_property(false ),
25
- in_comment(false ),
26
- in_wrapped(false ),
27
- in_media_block(false ),
28
25
in_declaration(false ),
29
26
separators(),
30
27
in_space_array(false ),
@@ -136,23 +133,12 @@ namespace Sass {
136
133
// append some text or token to the buffer
137
134
void Emitter::append_string (const std::string& text)
138
135
{
139
-
140
136
// write space/lf
141
137
flush_schedules ();
142
-
143
- if (in_comment) {
144
- std::string out = Util::normalize_newlines (text);
145
- if (output_style () == COMPACT) {
146
- out = comment_to_compact_string (out);
147
- }
148
- wbuf.smap .append (Offset (out));
149
- wbuf.buffer += std::move (out);
150
- } else {
151
- // add to buffer
152
- wbuf.buffer += text;
153
- // account for data in source-maps
154
- wbuf.smap .append (Offset (text));
155
- }
138
+ // add to buffer
139
+ wbuf.buffer += text;
140
+ // account for data in source-maps
141
+ wbuf.smap .append (Offset (text));
156
142
}
157
143
158
144
// append some white-space only text
Original file line number Diff line number Diff line change @@ -46,12 +46,6 @@ namespace Sass {
46
46
public:
47
47
// output strings different in custom css properties
48
48
bool in_custom_property;
49
- // output strings different in comments
50
- bool in_comment;
51
- // selector list does not get linefeeds
52
- bool in_wrapped;
53
- // lists always get a space after delimiter
54
- bool in_media_block;
55
49
// nested list must not have parentheses
56
50
bool in_declaration;
57
51
// nested lists need parentheses
You can’t perform that action at this time.
0 commit comments