aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/rule_tree/mod.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-06-07 20:27:53 -0400
committerGitHub <noreply@github.com>2019-06-07 20:27:53 -0400
commit0d5c6a0c37d40b7820140500510def7714a133e5 (patch)
tree5ba96d3ada25a5bd5bbfa63683156180e74021cf /components/style/rule_tree/mod.rs
parent626c431e06fda53b9b72de8e989f78e42412ea92 (diff)
parent642b7c3ea19cefbedbc881894e5679e7a5dd33ce (diff)
downloadservo-0d5c6a0c37d40b7820140500510def7714a133e5.tar.gz
servo-0d5c6a0c37d40b7820140500510def7714a133e5.zip
Auto merge of #23532 - est31:unused_code_removal_4, r=emilio
Remove unused code (4/4) <!-- Please describe your changes on the following line: --> Fourth and final PR in a series of PRs to remove unused/dead code from servo, powered by an (upcoming) tool of mine. Please take a look and tell me if you want to keep something. * First PR: #23477 * Second PR: #23498 * Third PR: #23499 Shortstat of the combined PR series: ``` 47 files changed, 7 insertions(+), 805 deletions(-) ``` --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because they only remove dead code <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/23532) <!-- Reviewable:end -->
Diffstat (limited to 'components/style/rule_tree/mod.rs')
-rw-r--r--components/style/rule_tree/mod.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/components/style/rule_tree/mod.rs b/components/style/rule_tree/mod.rs
index 34222103241..3b45035f46d 100644
--- a/components/style/rule_tree/mod.rs
+++ b/components/style/rule_tree/mod.rs
@@ -154,16 +154,6 @@ impl StyleSource {
block.read_with(guard)
}
- /// Indicates if this StyleSource is a style rule.
- pub fn is_rule(&self) -> bool {
- self.0.is_first()
- }
-
- /// Indicates if this StyleSource is a PropertyDeclarationBlock.
- pub fn is_declarations(&self) -> bool {
- self.0.is_second()
- }
-
/// Returns the style rule if applicable, otherwise None.
pub fn as_rule(&self) -> Option<ArcBorrow<Locked<StyleRule>>> {
self.0.as_first()