Skip to content

Commit a7428b4

Browse files
committed
---
yaml --- r: 42904 b: refs/heads/try c: c6e8af4 h: refs/heads/master v: v3
1 parent d2174bd commit a7428b4

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5-
refs/heads/try: 89c8ef792f7e7641abfac421ba1e8f90384883ec
5+
refs/heads/try: c6e8af446fa7fcd6b2362489293f2e6c5b98ffc3
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/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)