[librsvg: 4/11] Make ResolvedGradientVariant private and remove unused methods
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 4/11] Make ResolvedGradientVariant private and remove unused methods
- Date: Tue, 1 Dec 2020 18:24:44 +0000 (UTC)
commit 69ca23f42c5b29927e78b07b3bc6a39e38370d4b
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Nov 30 21:05:56 2020 -0600
Make ResolvedGradientVariant private and remove unused methods
src/gradient.rs | 22 +---------------------
1 file changed, 1 insertion(+), 21 deletions(-)
---
diff --git a/src/gradient.rs b/src/gradient.rs
index 3cbca442..b3dc6dd0 100644
--- a/src/gradient.rs
+++ b/src/gradient.rs
@@ -124,7 +124,7 @@ enum UnresolvedVariant {
/// Parameters specific to each gradient type, after resolving.
#[derive(Clone)]
-pub enum ResolvedGradientVariant {
+enum ResolvedGradientVariant {
Linear {
x1: Length<Horizontal>,
y1: Length<Vertical>,
@@ -695,26 +695,6 @@ impl SetAttributes for RadialGradient {
impl Draw for RadialGradient {}
impl ResolvedGradient {
- pub fn get_units(&self) -> GradientUnits {
- self.units
- }
-
- pub fn get_spread(&self) -> SpreadMethod {
- self.spread
- }
-
- pub fn get_transform(&self) -> Transform {
- self.transform
- }
-
- pub fn get_stops(&self) -> &Vec<ColorStop> {
- &self.stops
- }
-
- pub fn get_variant(&self) -> &ResolvedGradientVariant {
- &self.variant
- }
-
pub fn to_user_space(
&self,
bbox: &BoundingBox,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]