diff options
| author | Brian Anderson <banderson@mozilla.com> | 2015-01-12 16:31:11 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2015-01-21 10:34:16 -0800 |
| commit | 90aa581cff54ed1bb5f53ee2ead3764fca94fdf3 (patch) | |
| tree | 2e2487396253ce6371325d9b35494108719cea99 /src/librustdoc/html | |
| parent | 6869645e86c91544b8737b89809bdf10bef536d9 (diff) | |
| download | rust-90aa581cff54ed1bb5f53ee2ead3764fca94fdf3.tar.gz rust-90aa581cff54ed1bb5f53ee2ead3764fca94fdf3.zip | |
Remove unused stability levels from compiler
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/format.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs index 57b8d666c95..ad13ab59c03 100644 --- a/src/librustdoc/html/format.rs +++ b/src/librustdoc/html/format.rs @@ -765,9 +765,6 @@ impl fmt::String for ModuleSummary { try!(write!(f, "<span class='summary Unstable' \ style='width: {:.4}%; display: inline-block'> </span>", (100 * cnt.unstable) as f64/tot as f64)); - try!(write!(f, "<span class='summary Experimental' \ - style='width: {:.4}%; display: inline-block'> </span>", - (100 * cnt.experimental) as f64/tot as f64)); try!(write!(f, "<span class='summary Deprecated' \ style='width: {:.4}%; display: inline-block'> </span>", (100 * cnt.deprecated) as f64/tot as f64)); @@ -786,12 +783,11 @@ impl fmt::String for ModuleSummary { let mut context = Vec::new(); let tot = self.counts.total(); - let (stable, unstable, experimental, deprecated, unmarked) = if tot == 0 { - (0, 0, 0, 0, 0) + let (stable, unstable, deprecated, unmarked) = if tot == 0 { + (0, 0, 0, 0) } else { ((100 * self.counts.stable)/tot, (100 * self.counts.unstable)/tot, - (100 * self.counts.experimental)/tot, (100 * self.counts.deprecated)/tot, (100 * self.counts.unmarked)/tot) }; @@ -804,13 +800,12 @@ its children (percentages total for {name}): <blockquote> <a class='stability Stable'></a> stable ({}%),<br/> <a class='stability Unstable'></a> unstable ({}%),<br/> -<a class='stability Experimental'></a> experimental ({}%),<br/> <a class='stability Deprecated'></a> deprecated ({}%),<br/> <a class='stability Unmarked'></a> unmarked ({}%) </blockquote> The counts do not include methods or trait implementations that are visible only through a re-exported type.", -stable, unstable, experimental, deprecated, unmarked, +stable, unstable, deprecated, unmarked, name=self.name)); try!(write!(f, "<table>")); try!(fmt_inner(f, &mut context, self)); |
