[librsvg: 29/45] Remove superfluous binding
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 29/45] Remove superfluous binding
- Date: Tue, 1 Oct 2019 15:09:22 +0000 (UTC)
commit 125c66124387b2b05e62f15a48763334ef2c4b1b
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Sep 30 08:43:29 2019 -0500
Remove superfluous binding
rsvg_internals/src/gradient.rs | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/rsvg_internals/src/gradient.rs b/rsvg_internals/src/gradient.rs
index 6aee6a48..7365f12b 100644
--- a/rsvg_internals/src/gradient.rs
+++ b/rsvg_internals/src/gradient.rs
@@ -636,8 +636,7 @@ impl ResolvedPaintSource for Gradient {
opacity: &UnitInterval,
bbox: &BoundingBox,
) -> Result<bool, RenderingError> {
- let units = self.units;
- let params = if units == GradientUnits(CoordUnits::ObjectBoundingBox) {
+ let params = if self.units == GradientUnits(CoordUnits::ObjectBoundingBox) {
draw_ctx.push_view_box(1.0, 1.0)
} else {
draw_ctx.get_view_params()
@@ -672,9 +671,8 @@ impl Gradient {
opacity: &UnitInterval,
) {
let mut affine = self.affine;
- let units = self.units;
- if units == GradientUnits(CoordUnits::ObjectBoundingBox) {
+ if self.units == GradientUnits(CoordUnits::ObjectBoundingBox) {
let bbox_rect = bbox.rect.unwrap();
let bbox_matrix = cairo::Matrix::new(
bbox_rect.width,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]