@@ -413,10 +413,6 @@ impl<'a> Id<'a> {
413
413
pub fn as_slice ( & ' a self ) -> & ' a str {
414
414
& * self . name
415
415
}
416
-
417
- pub fn name ( self ) -> Cow < ' a , str > {
418
- self . name
419
- }
420
416
}
421
417
422
418
/// Each instance of a type that implements `Label<C>` maps to a
@@ -484,10 +480,6 @@ impl<'a> LabelText<'a> {
484
480
LabelStr ( s. into ( ) )
485
481
}
486
482
487
- pub fn escaped < S : Into < Cow < ' a , str > > > ( s : S ) -> LabelText < ' a > {
488
- EscStr ( s. into ( ) )
489
- }
490
-
491
483
pub fn html < S : Into < Cow < ' a , str > > > ( s : S ) -> LabelText < ' a > {
492
484
HtmlStr ( s. into ( ) )
493
485
}
@@ -543,11 +535,6 @@ impl<'a> LabelText<'a> {
543
535
}
544
536
}
545
537
546
- /// Puts `prefix` on a line above this label, with a blank line separator.
547
- pub fn prefix_line ( self , prefix : LabelText < ' _ > ) -> LabelText < ' static > {
548
- prefix. suffix_line ( self )
549
- }
550
-
551
538
/// Puts `suffix` on a line below this label, with a blank line separator.
552
539
pub fn suffix_line ( self , suffix : LabelText < ' _ > ) -> LabelText < ' static > {
553
540
let mut prefix = self . pre_escaped_content ( ) . into_owned ( ) ;
@@ -602,11 +589,6 @@ pub enum RenderOption {
602
589
DarkTheme ,
603
590
}
604
591
605
- /// Returns vec holding all the default render options.
606
- pub fn default_options ( ) -> Vec < RenderOption > {
607
- vec ! [ ]
608
- }
609
-
610
592
/// Renders directed graph `g` into the writer `w` in DOT syntax.
611
593
/// (Simple wrapper around `render_opts` that passes a default set of options.)
612
594
pub fn render < ' a , N , E , G , W > ( g : & ' a G , w : & mut W ) -> io:: Result < ( ) >
0 commit comments