Skip to content

Commit b7a2cc4

Browse files
committed
---
yaml --- r: 42238 b: refs/heads/master c: c6e8af4 h: refs/heads/master v: v3
1 parent 00ca10f commit b7a2cc4

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 89c8ef792f7e7641abfac421ba1e8f90384883ec
2+
refs/heads/master: c6e8af446fa7fcd6b2362489293f2e6c5b98ffc3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/src/librustdoc/util.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,3 @@ pub struct NominalOp<T> {
2121
impl<T: Copy> NominalOp<T>: Clone {
2222
fn clone(&self) -> NominalOp<T> { copy *self }
2323
}
24-
25-
pub fn spawn_listener<A: Owned>(
26-
f: fn~(oldcomm::Port<A>)) -> oldcomm::Chan<A> {
27-
let setup_po = oldcomm::Port();
28-
let setup_ch = oldcomm::Chan(&setup_po);
29-
do task::spawn |move f| {
30-
let po = oldcomm::Port();
31-
let ch = oldcomm::Chan(&po);
32-
oldcomm::send(setup_ch, ch);
33-
f(move po);
34-
}
35-
oldcomm::recv(setup_po)
36-
}
37-
38-
pub fn spawn_conversation<A: Owned, B: Owned>
39-
(f: fn~(oldcomm::Port<A>, oldcomm::Chan<B>))
40-
-> (oldcomm::Port<B>, oldcomm::Chan<A>) {
41-
let from_child = oldcomm::Port();
42-
let to_parent = oldcomm::Chan(&from_child);
43-
let to_child = do spawn_listener |move f, from_parent| {
44-
f(from_parent, to_parent)
45-
};
46-
(from_child, to_child)
47-
}

0 commit comments

Comments
 (0)