Skip to content
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

Remove a few methods #352

Merged
merged 4 commits into from Jul 3, 2019
Merged

Remove a few methods #352

merged 4 commits into from Jul 3, 2019

Conversation

@nical
Copy link
Collaborator

nical commented Jul 2, 2019

Number three in a long list of breaking changes.

  • Remove deprecated transform pre_mul/post_mul methods. We already have pre_transform/post_transform which are less ambiguous. It is possible that we will reintroduce pre_mul/post_mul later but if so their name will follow the matrix multiplication convention rather than the semantic of the transformation so they may or may not become the opposite of what they are now depending on the chosen matrix convention. So it's best to remove them for at least a release and add them back when the dependent crates have moved to pre_transform/post_transform to avoid bugs.
  • Remove *_typed methods. They are too much of a mouthful and nobody uses them as far as I know. It'd be nice to come up with a nicer naming scheme to reintroduce methods returning Length<T, U> in addition to the ones that return T, we can do that without causing breaking changes whenever we settle for something.
  • Remove Rect::translate_by_size and make it easier to convert sizes into vectors instead to achieve the same thing.

This change is Reviewable

@nical
Copy link
Collaborator Author

nical commented Jul 2, 2019

r? @kvark

src/size.rs Outdated
}
}

impl<T: Copy, U> Into<Vector2D<T, U>> for Size2D<T, U> {

This comment has been minimized.

@kvark

kvark Jul 2, 2019

Member

why are we not implementing From<Size2D> for Vector2D instead?

This comment has been minimized.

@nical

nical Jul 2, 2019

Author Collaborator

I got mixed up about which provide the other, I'll change it.

This comment has been minimized.

@nical

nical Jul 3, 2019

Author Collaborator

Done.

@nical nical force-pushed the nical:breaking-3 branch from 2a57444 to e22f949 Jul 3, 2019
@kvark
kvark approved these changes Jul 3, 2019
@kvark
Copy link
Member

kvark commented Jul 3, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Jul 3, 2019

📌 Commit e22f949 has been approved by kvark

@bors-servo
Copy link
Contributor

bors-servo commented Jul 3, 2019

Testing commit e22f949 with merge f47703f...

bors-servo added a commit that referenced this pull request Jul 3, 2019
Remove a few methods

Number three in a [long list](https://github.com/nical/euclid/commits/breaking-changes) of breaking changes.

 - Remove deprecated transform pre_mul/post_mul methods. We already have pre_transform/post_transform which are less ambiguous. It is possible that we will reintroduce pre_mul/post_mul later but if so their name will follow the matrix multiplication convention rather than the semantic of the transformation so they may or may not become the opposite of what they are now depending on the chosen matrix convention. So it's best to remove them for at least a release and add them back when the dependent crates have moved to pre_transform/post_transform to avoid bugs.
 - Remove `*_typed` methods. They are too much of a mouthful and nobody uses them as far as I know. It'd be nice to come up with a nicer naming scheme to reintroduce methods returning `Length<T, U>` in addition to the ones that return `T`, we can do that without causing breaking changes whenever we settle for something.
 - Remove `Rect::translate_by_size` and make it easier to convert sizes into vectors instead to achieve the same thing.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/euclid/352)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 3, 2019

☀️ Test successful - checks-travis
Approved by: kvark
Pushing f47703f to master...

@bors-servo bors-servo merged commit e22f949 into servo:master Jul 3, 2019
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.