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 unused generic from push_applicable_declarations #19424

Merged
merged 1 commit into from Nov 29, 2017

Conversation

@mbrubeck
Copy link
Contributor

mbrubeck commented Nov 29, 2017

This function is only ever used with one type.

This gets rid of the only use of the smallvec::VecLike trait, which we may want to deprecate (servo/rust-smallvec#35). If we do need to make this function generic in the future, we can do it using standard traits instead.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes do not require tests because they are removing unused code

This change is Reviewable

This function is only ever used with one type.  This gets rid of the
only use of the `smallvec::VecLike` trait, which we may want to
deprecate.  (If we do need to make this function generic in the future,
we can do it using standard traits instead.)
@highfive
Copy link

highfive commented Nov 29, 2017

Heads up! This PR modifies the following files:

  • @bholley: components/style/selector_map.rs, components/style/stylist.rs
  • @canaltinova: components/style/selector_map.rs, components/style/stylist.rs
  • @emilio: components/style/selector_map.rs, components/style/stylist.rs
@highfive
Copy link

highfive commented Nov 29, 2017

warning Warning warning

  • These commits modify style code, but no tests are modified. Please consider adding a test!
@emilio
Copy link
Member

emilio commented Nov 29, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Nov 29, 2017

📌 Commit 0009ccd has been approved by emilio

@highfive highfive assigned emilio and unassigned pcwalton Nov 29, 2017
@emilio
Copy link
Member

emilio commented Nov 29, 2017

Thanks!

@bors-servo
Copy link
Contributor

bors-servo commented Nov 29, 2017

Testing commit 0009ccd with merge dbe3136...

bors-servo added a commit that referenced this pull request Nov 29, 2017
Remove unused generic from push_applicable_declarations

This function is only ever used with one type.

This gets rid of the only use of the `smallvec::VecLike` trait, which we may want to deprecate (servo/rust-smallvec#35).  If we do need to make this function generic in the future, we can do it using standard traits instead.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because they are removing unused code

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

bors-servo commented Nov 29, 2017

@bors-servo bors-servo merged commit 0009ccd into servo:master Nov 29, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
bors-servo added a commit to servo/rust-smallvec that referenced this pull request Nov 29, 2017
Deprecate the VecLike trait

This is an update of PR #35.

This trait is redundant with existing traits like `Extend` and `Deref`.  Its purpose is unclear (you can do a few things with it, but not much) and the one use case I know of has been removed (servo/servo#19424).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-smallvec/74)
<!-- Reviewable:end -->
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

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