@@ -8,8 +8,7 @@ namespace Sass {
8
8
Output::Output (Context* ctx)
9
9
: Inspect(Emitter(ctx)),
10
10
charset (" " ),
11
- top_imports(0 ),
12
- top_comments(0 )
11
+ top_nodes(0 )
13
12
{}
14
13
15
14
Output::~Output () { }
@@ -21,7 +20,7 @@ namespace Sass {
21
20
22
21
void Output::operator ()(Import* imp)
23
22
{
24
- top_imports .push_back (imp);
23
+ top_nodes .push_back (imp);
25
24
}
26
25
27
26
OutputBuffer Output::get_buffer (void )
@@ -30,15 +29,9 @@ namespace Sass {
30
29
Emitter emitter (ctx);
31
30
Inspect inspect (emitter);
32
31
33
- size_t size_com = top_comments.size ();
34
- for (size_t i = 0 ; i < size_com; i++) {
35
- top_comments[i]->perform (&inspect);
36
- inspect.append_mandatory_linefeed ();
37
- }
38
-
39
- size_t size_imp = top_imports.size ();
40
- for (size_t i = 0 ; i < size_imp; i++) {
41
- top_imports[i]->perform (&inspect);
32
+ size_t size_nodes = top_nodes.size ();
33
+ for (size_t i = 0 ; i < size_nodes; i++) {
34
+ top_nodes[i]->perform (&inspect);
42
35
inspect.append_mandatory_linefeed ();
43
36
}
44
37
@@ -79,8 +72,8 @@ namespace Sass {
79
72
// if (indentation && txt == "/**/") return;
80
73
bool important = c->is_important ();
81
74
if (output_style () != COMPRESSED || important) {
82
- if (buffer ().size () + top_imports. size () == 0 ) {
83
- top_comments .push_back (c);
75
+ if (buffer ().size () == 0 ) {
76
+ top_nodes .push_back (c);
84
77
} else {
85
78
in_comment = true ;
86
79
append_indentation ();
0 commit comments