Skip to content

Pipes cleanup #5921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 18, 2013
Merged

Pipes cleanup #5921

merged 8 commits into from
Apr 18, 2013

Conversation

brson
Copy link
Contributor

@brson brson commented Apr 17, 2013

This builds on #5909. I've been combing through the pipes code to understand it and started refactoring a bit.

  • Removes pipes::spawn_* functions. These are not particularly useful since they deal with low-level pipes types.
  • Inlines the protocol-compiled definitions of oneshot and streamp. These are the only two uses of the protocol compiler in core and I'm inlining them so I can understand what they are doing as I work on pipes. I may un-inline them in the future.
  • Removes redundant functions from core::comm
  • Change the constructors to use the new convention

brson added 8 commits April 18, 2013 14:07
These are only used in test cases; pipes isn't the right place for them;
they are unnecessary.

Conflicts:
	src/libcore/rt/uv/mod.rs
I want to be able to see what is going on
`send`, etc. are never used. I've left the functions for oneshot pipes
because by-value methods don't work.
bors added a commit that referenced this pull request Apr 18, 2013
This builds on #5909. I've been combing through the pipes code to understand it and started refactoring a bit.

* Removes pipes::spawn_* functions. These are not particularly useful since they deal with low-level pipes types.
* Inlines the protocol-compiled definitions of `oneshot` and `streamp`. These are the only two uses of the protocol compiler in core and I'm inlining them so I can understand what they are doing as I work on pipes. I may un-inline them in the future.
* Removes redundant functions from core::comm
* Change the constructors to use the `new` convention
@bors bors closed this Apr 18, 2013
@bors bors merged commit decd390 into rust-lang:incoming Apr 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants