aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2014-08-26 12:54:21 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2014-08-27 08:36:10 -0700
commit101f3ee35a7d45e682f19303f67736536d61ecea (patch)
treee5e9f2ea339a6f31363ac5f3cb906426ea98a6d1 /src
parent7f8e8372e3b42d3a3ad7b7400d287b1760d32612 (diff)
downloadservo-101f3ee35a7d45e682f19303f67736536d61ecea.tar.gz
servo-101f3ee35a7d45e682f19303f67736536d61ecea.zip
Remove some unneeded pubs
Diffstat (limited to 'src')
-rw-r--r--src/components/layout/text.rs12
-rw-r--r--src/components/layout/wrapper.rs2
2 files changed, 7 insertions, 7 deletions
diff --git a/src/components/layout/text.rs b/src/components/layout/text.rs
index 569580995c8..70b2cc7a3cc 100644
--- a/src/components/layout/text.rs
+++ b/src/components/layout/text.rs
@@ -87,12 +87,12 @@ impl TextRunScanner {
///
/// FIXME(#2267, pcwalton): Stop cloning fragments. Instead we will need to replace each
/// `in_fragment` with some smaller stub.
- pub fn flush_clump_to_list(&mut self,
- font_context: &mut FontContext,
- in_fragments: &[Fragment],
- out_fragments: &mut Vec<Fragment>,
- last_whitespace: bool)
- -> bool {
+ fn flush_clump_to_list(&mut self,
+ font_context: &mut FontContext,
+ in_fragments: &[Fragment],
+ out_fragments: &mut Vec<Fragment>,
+ last_whitespace: bool)
+ -> bool {
assert!(self.clump.length() > CharIndex(0));
debug!("TextRunScanner: flushing fragments in range={}", self.clump);
diff --git a/src/components/layout/wrapper.rs b/src/components/layout/wrapper.rs
index e5d450d93f7..9616eedcb3a 100644
--- a/src/components/layout/wrapper.rs
+++ b/src/components/layout/wrapper.rs
@@ -536,7 +536,7 @@ impl<'ln> ThreadSafeLayoutNode<'ln> {
/// Creates a new `ThreadSafeLayoutNode` for the same `LayoutNode`
/// with a different pseudo-element type.
- pub fn with_pseudo(&self, pseudo: PseudoElementType) -> ThreadSafeLayoutNode<'ln> {
+ fn with_pseudo(&self, pseudo: PseudoElementType) -> ThreadSafeLayoutNode<'ln> {
ThreadSafeLayoutNode {
node: self.node.clone(),
pseudo: pseudo,