[librsvg: 6/15] Use _node for the unused arguments in filter render functions
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 6/15] Use _node for the unused arguments in filter render functions
- Date: Tue, 9 Mar 2021 20:51:37 +0000 (UTC)
commit b0c848804dfae7dfaa57b052d0e819fcad4ae9d9
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Mar 8 19:09:06 2021 -0600
Use _node for the unused arguments in filter render functions
The warnings are driving me nuts. That argument will go a way once we
finish parameterizing all the filters.
src/filters/blend.rs | 2 +-
src/filters/color_matrix.rs | 2 +-
src/filters/composite.rs | 2 +-
src/filters/convolve_matrix.rs | 2 +-
src/filters/displacement_map.rs | 2 +-
src/filters/gaussian_blur.rs | 2 +-
src/filters/image.rs | 2 +-
src/filters/morphology.rs | 2 +-
src/filters/offset.rs | 2 +-
src/filters/tile.rs | 2 +-
10 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/filters/blend.rs b/src/filters/blend.rs
index 6889f5b4..2d7050d4 100755
--- a/src/filters/blend.rs
+++ b/src/filters/blend.rs
@@ -73,7 +73,7 @@ impl SetAttributes for FeBlend {
impl FilterRender for FeBlend {
fn render(
&self,
- node: &Node,
+ _node: &Node,
ctx: &FilterContext,
acquired_nodes: &mut AcquiredNodes<'_>,
draw_ctx: &mut DrawingCtx,
diff --git a/src/filters/color_matrix.rs b/src/filters/color_matrix.rs
index 2a54063e..857d2c3d 100644
--- a/src/filters/color_matrix.rs
+++ b/src/filters/color_matrix.rs
@@ -140,7 +140,7 @@ impl SetAttributes for FeColorMatrix {
impl FilterRender for FeColorMatrix {
fn render(
&self,
- node: &Node,
+ _node: &Node,
ctx: &FilterContext,
acquired_nodes: &mut AcquiredNodes<'_>,
draw_ctx: &mut DrawingCtx,
diff --git a/src/filters/composite.rs b/src/filters/composite.rs
index f7195d45..1779fc68 100644
--- a/src/filters/composite.rs
+++ b/src/filters/composite.rs
@@ -73,7 +73,7 @@ impl SetAttributes for FeComposite {
impl FilterRender for FeComposite {
fn render(
&self,
- node: &Node,
+ _node: &Node,
ctx: &FilterContext,
acquired_nodes: &mut AcquiredNodes<'_>,
draw_ctx: &mut DrawingCtx,
diff --git a/src/filters/convolve_matrix.rs b/src/filters/convolve_matrix.rs
index e3e407a4..97273b5a 100644
--- a/src/filters/convolve_matrix.rs
+++ b/src/filters/convolve_matrix.rs
@@ -122,7 +122,7 @@ impl SetAttributes for FeConvolveMatrix {
impl FilterRender for FeConvolveMatrix {
fn render(
&self,
- node: &Node,
+ _node: &Node,
ctx: &FilterContext,
acquired_nodes: &mut AcquiredNodes<'_>,
draw_ctx: &mut DrawingCtx,
diff --git a/src/filters/displacement_map.rs b/src/filters/displacement_map.rs
index 95829da6..0d9904a7 100644
--- a/src/filters/displacement_map.rs
+++ b/src/filters/displacement_map.rs
@@ -70,7 +70,7 @@ impl SetAttributes for FeDisplacementMap {
impl FilterRender for FeDisplacementMap {
fn render(
&self,
- node: &Node,
+ _node: &Node,
ctx: &FilterContext,
acquired_nodes: &mut AcquiredNodes<'_>,
draw_ctx: &mut DrawingCtx,
diff --git a/src/filters/gaussian_blur.rs b/src/filters/gaussian_blur.rs
index 7d4d905a..6bf42cc8 100644
--- a/src/filters/gaussian_blur.rs
+++ b/src/filters/gaussian_blur.rs
@@ -188,7 +188,7 @@ fn gaussian_blur(
impl FilterRender for FeGaussianBlur {
fn render(
&self,
- node: &Node,
+ _node: &Node,
ctx: &FilterContext,
acquired_nodes: &mut AcquiredNodes<'_>,
draw_ctx: &mut DrawingCtx,
diff --git a/src/filters/image.rs b/src/filters/image.rs
index a7fabc31..fb7d2006 100644
--- a/src/filters/image.rs
+++ b/src/filters/image.rs
@@ -121,7 +121,7 @@ impl SetAttributes for FeImage {
impl FilterRender for FeImage {
fn render(
&self,
- node: &Node,
+ _node: &Node,
ctx: &FilterContext,
acquired_nodes: &mut AcquiredNodes<'_>,
draw_ctx: &mut DrawingCtx,
diff --git a/src/filters/morphology.rs b/src/filters/morphology.rs
index 96989435..efe80116 100644
--- a/src/filters/morphology.rs
+++ b/src/filters/morphology.rs
@@ -67,7 +67,7 @@ impl SetAttributes for FeMorphology {
impl FilterRender for FeMorphology {
fn render(
&self,
- node: &Node,
+ _node: &Node,
ctx: &FilterContext,
acquired_nodes: &mut AcquiredNodes<'_>,
draw_ctx: &mut DrawingCtx,
diff --git a/src/filters/offset.rs b/src/filters/offset.rs
index 23a91a55..8cc42cd8 100644
--- a/src/filters/offset.rs
+++ b/src/filters/offset.rs
@@ -48,7 +48,7 @@ impl SetAttributes for FeOffset {
impl FilterRender for FeOffset {
fn render(
&self,
- node: &Node,
+ _node: &Node,
ctx: &FilterContext,
acquired_nodes: &mut AcquiredNodes<'_>,
draw_ctx: &mut DrawingCtx,
diff --git a/src/filters/tile.rs b/src/filters/tile.rs
index 855a94ef..5d8eeeb0 100644
--- a/src/filters/tile.rs
+++ b/src/filters/tile.rs
@@ -31,7 +31,7 @@ impl SetAttributes for FeTile {
impl FilterRender for FeTile {
fn render(
&self,
- node: &Node,
+ _node: &Node,
ctx: &FilterContext,
acquired_nodes: &mut AcquiredNodes<'_>,
draw_ctx: &mut DrawingCtx,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]