@@ -21,7 +21,6 @@ macro_rules! select_if {
21
21
-> $nexts: ident $es: expr) ,+
22
22
] , ) *
23
23
} => {
24
- log_syntax!{ select_if1} ;
25
24
if $index == $count {
26
25
match move pipes:: try_recv( $port) {
27
26
$( some( $message( $( $( copy $x, ) +) * next) ) => {
@@ -47,7 +46,6 @@ macro_rules! select_if {
47
46
$index: expr,
48
47
$count: expr,
49
48
} => {
50
- log_syntax!{ select_if2} ;
51
49
fail
52
50
}
53
51
}
@@ -60,12 +58,6 @@ macro_rules! select {
60
58
} ) +
61
59
} => {
62
60
let index = pipes:: selecti( [ $( ( $port) . header( ) ) ,+] /_) ;
63
- log_syntax!{ select} ;
64
- log_syntax!{
65
- select_if!{ index, 0 , $( $port => [
66
- $( $message$( ( $( $x) ,+) ) dont_type_this* -> $next $e) ,+
67
- ] , ) +}
68
- } ;
69
61
select_if!{ index, 0 , $( $port => [
70
62
$( $message$( ( $( $x) ,+) ) dont_type_this* -> $next $e) ,+
71
63
] , ) +}
@@ -134,11 +126,10 @@ fn draw_two_frames(+channel: double_buffer::client::acquire) {
134
126
#[ cfg( bad1) ]
135
127
fn draw_two_frames_bad1 ( +channel : double_buffer:: client:: acquire ) {
136
128
let channel = request ( channel) ;
137
- let channel = select ! {
129
+ select ! {
138
130
channel => {
139
131
give_buffer( buffer) -> channel {
140
132
render( & buffer) ;
141
- channel
142
133
}
143
134
}
144
135
} ;
@@ -168,4 +159,4 @@ fn draw_two_frames_bad2(+channel: double_buffer::client::acquire) {
168
159
} ;
169
160
}
170
161
171
- fn main ( ) { }
162
+ fn main ( ) { }
0 commit comments