aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx_traits
diff options
context:
space:
mode:
Diffstat (limited to 'components/gfx_traits')
-rw-r--r--components/gfx_traits/color.rs41
-rw-r--r--components/gfx_traits/lib.rs1
2 files changed, 0 insertions, 42 deletions
diff --git a/components/gfx_traits/color.rs b/components/gfx_traits/color.rs
deleted file mode 100644
index a128d364432..00000000000
--- a/components/gfx_traits/color.rs
+++ /dev/null
@@ -1,41 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-use azure::AzFloat;
-use azure::azure::AzColor;
-
-#[inline]
-pub fn new(r: AzFloat, g: AzFloat, b: AzFloat, a: AzFloat) -> AzColor {
- AzColor { r: r, g: g, b: b, a: a }
-}
-
-#[inline]
-pub fn rgb(r: u8, g: u8, b: u8) -> AzColor {
- AzColor {
- r: (r as AzFloat) / (255.0 as AzFloat),
- g: (g as AzFloat) / (255.0 as AzFloat),
- b: (b as AzFloat) / (255.0 as AzFloat),
- a: 1.0 as AzFloat
- }
-}
-
-#[inline]
-pub fn rgba(r: AzFloat, g: AzFloat, b: AzFloat, a: AzFloat) -> AzColor {
- AzColor { r: r, g: g, b: b, a: a }
-}
-
-#[inline]
-pub fn black() -> AzColor {
- AzColor { r: 0.0, g: 0.0, b: 0.0, a: 1.0 }
-}
-
-#[inline]
-pub fn transparent() -> AzColor {
- AzColor { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }
-}
-
-#[inline]
-pub fn white() -> AzColor {
- AzColor { r: 1.0, g: 1.0, b: 1.0, a: 1.0 }
-}
diff --git a/components/gfx_traits/lib.rs b/components/gfx_traits/lib.rs
index bdf1a7591eb..a198a436dfb 100644
--- a/components/gfx_traits/lib.rs
+++ b/components/gfx_traits/lib.rs
@@ -19,7 +19,6 @@ extern crate serde;
#[macro_use]
extern crate serde_derive;
-pub mod color;
pub mod print_tree;
use range::RangeIndex;