diff options
| author | acdenisSK <[email protected]> | 2017-07-11 22:13:57 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-07-11 22:13:57 +0200 |
| commit | ebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6 (patch) | |
| tree | 1eeee881705d8721cdb4238461e5422043a63ca1 /src/utils | |
| parent | Add a way to add multiple fields at once (diff) | |
| download | serenity-ebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6.tar.xz serenity-ebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6.zip | |
Remove the deprecated functions
It's already been enough time for people to migrate
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/colour.rs | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/utils/colour.rs b/src/utils/colour.rs index 71fc25a..6436a06 100644 --- a/src/utils/colour.rs +++ b/src/utils/colour.rs @@ -188,42 +188,6 @@ impl Colour { pub fn tuple(&self) -> (u8, u8, u8) { (self.r(), self.g(), self.b()) } - - /// Alias of [`r`]. - /// - /// [`r`]: #method.r - #[deprecated(since="0.1.5", note="Use `r` instead.")] - #[inline] - pub fn get_r(&self) -> u8 { - self.r() - } - - /// Alias of [`g`]. - /// - /// [`g`]: #method.g - #[deprecated(since="0.1.5", note="Use `g` instead.")] - #[inline] - pub fn get_g(&self) -> u8 { - self.g() - } - - /// Alias of [`b`]. - /// - /// [`b`]: #method.b - #[deprecated(since="0.1.5", note="Use `b` instead.")] - #[inline] - pub fn get_b(&self) -> u8 { - self.b() - } - - /// Alias of [`tuple`]. - /// - /// [`tuple`]: #method.tuple - #[deprecated(since="0.1.5", note="Use `tuple` instead.")] - #[inline] - pub fn get_tuple(&self) -> (u8, u8, u8) { - self.tuple() - } } impl From<i32> for Colour { |