mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Remove dead code from layout.
This commit is contained in:
parent
de23fef9ca
commit
5ec1cdea9b
11 changed files with 4 additions and 116 deletions
|
@ -804,16 +804,6 @@ impl InlineFragments {
|
|||
self.fragments.is_empty()
|
||||
}
|
||||
|
||||
/// Pushes a new inline fragment.
|
||||
pub fn push(&mut self, fragment: &mut Fragment) {
|
||||
self.fragments.push(fragment.clone());
|
||||
}
|
||||
|
||||
/// Merges another set of inline fragments with this one.
|
||||
pub fn push_all(&mut self, mut other: InlineFragments) {
|
||||
self.fragments.append(&mut other.fragments);
|
||||
}
|
||||
|
||||
/// A convenience function to return the fragment at a given index.
|
||||
pub fn get(&self, index: usize) -> &Fragment {
|
||||
&self.fragments[index]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue