From a74f2691a8ebaab36c72bf2a280d8e6ff974a6e4 Mon Sep 17 00:00:00 2001 From: adroitwhiz Date: Thu, 25 Feb 2021 16:31:10 -0500 Subject: [PATCH] Remove redundant animationDelay calls (#68) --- natives/mirror.cc | 1 - natives/motivate.cc | 1 - natives/scott.cc | 1 - natives/tile.cc | 1 - natives/trump.cc | 1 - natives/watermark.cc | 1 - natives/wdt.cc | 1 - 7 files changed, 7 deletions(-) diff --git a/natives/mirror.cc b/natives/mirror.cc index d71ee75..9744abc 100644 --- a/natives/mirror.cc +++ b/natives/mirror.cc @@ -58,7 +58,6 @@ class MirrorWorker : public Napi::AsyncWorker { for (Image &image : mid) { image.quantizeDither(false); image.quantize(); - if (delay != 0) image.animationDelay(delay); } } diff --git a/natives/motivate.cc b/natives/motivate.cc index 8b03fd7..d0d7ce3 100644 --- a/natives/motivate.cc +++ b/natives/motivate.cc @@ -65,7 +65,6 @@ class MotivateWorker : public Napi::AsyncWorker { for (Image &image : mid) { image.quantizeDither(false); image.quantize(); - if (delay != 0) image.animationDelay(delay); } } diff --git a/natives/scott.cc b/natives/scott.cc index b5efbbe..2ee2e3b 100644 --- a/natives/scott.cc +++ b/natives/scott.cc @@ -40,7 +40,6 @@ class ScottWorker : public Napi::AsyncWorker { for (Image &image : mid) { image.quantizeDitherMethod(FloydSteinbergDitherMethod); image.quantize(); - if (delay != 0) image.animationDelay(delay); } } diff --git a/natives/tile.cc b/natives/tile.cc index 1126590..6eac5c7 100644 --- a/natives/tile.cc +++ b/natives/tile.cc @@ -45,7 +45,6 @@ class TileWorker : public Napi::AsyncWorker { for (Image &image : mid) { image.quantizeDitherMethod(FloydSteinbergDitherMethod); image.quantize(); - if (delay != 0) image.animationDelay(delay); } } diff --git a/natives/trump.cc b/natives/trump.cc index ba511f4..c8878ca 100644 --- a/natives/trump.cc +++ b/natives/trump.cc @@ -40,7 +40,6 @@ class TrumpWorker : public Napi::AsyncWorker { for (Image &image : mid) { image.quantizeDitherMethod(FloydSteinbergDitherMethod); image.quantize(); - if (delay != 0) image.animationDelay(delay); } } diff --git a/natives/watermark.cc b/natives/watermark.cc index cf20b39..c7b2c29 100644 --- a/natives/watermark.cc +++ b/natives/watermark.cc @@ -56,7 +56,6 @@ class WatermarkWorker : public Napi::AsyncWorker { for (Image &image : mid) { image.quantizeDitherMethod(FloydSteinbergDitherMethod); image.quantize(); - if (delay != 0) image.animationDelay(delay); } } diff --git a/natives/wdt.cc b/natives/wdt.cc index 20bc413..47922ea 100644 --- a/natives/wdt.cc +++ b/natives/wdt.cc @@ -35,7 +35,6 @@ class WdtWorker : public Napi::AsyncWorker { for (Image &image : mid) { image.quantizeDitherMethod(FloydSteinbergDitherMethod); image.quantize(); - if (delay != 0) image.animationDelay(delay); } }