[poppler] splash/SplashPath.cc splash/SplashPath.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Aug 30 23:04:52 UTC 2021


 splash/SplashPath.cc |   18 ------------------
 splash/SplashPath.h  |    5 -----
 2 files changed, 23 deletions(-)

New commits:
commit 3cbd833a560eaa8f2d284c3de2033247777b2e6a
Author: Albert Astals Cid <aacid at kde.org>
Date:   Tue Aug 31 00:15:51 2021 +0200

    Remove unused SplashPath::copy

diff --git a/splash/SplashPath.cc b/splash/SplashPath.cc
index 3b49d255..1cfc945e 100644
--- a/splash/SplashPath.cc
+++ b/splash/SplashPath.cc
@@ -53,24 +53,6 @@ SplashPath::SplashPath()
     hintsLength = hintsSize = 0;
 }
 
-SplashPath::SplashPath(const SplashPath *path)
-{
-    length = path->length;
-    size = path->size;
-    pts = (SplashPathPoint *)gmallocn(size, sizeof(SplashPathPoint));
-    flags = (unsigned char *)gmallocn(size, sizeof(unsigned char));
-    memcpy(pts, path->pts, length * sizeof(SplashPathPoint));
-    memcpy(flags, path->flags, length * sizeof(unsigned char));
-    curSubpath = path->curSubpath;
-    if (path->hints) {
-        hintsLength = hintsSize = path->hintsLength;
-        hints = (SplashPathHint *)gmallocn(hintsSize, sizeof(SplashPathHint));
-        memcpy(hints, path->hints, hintsLength * sizeof(SplashPathHint));
-    } else {
-        hints = nullptr;
-    }
-}
-
 SplashPath::SplashPath(SplashPath &&path) noexcept
 {
     length = path.length;
diff --git a/splash/SplashPath.h b/splash/SplashPath.h
index 34da6c63..815e48a7 100644
--- a/splash/SplashPath.h
+++ b/splash/SplashPath.h
@@ -70,10 +70,6 @@ class POPPLER_PRIVATE_EXPORT SplashPath
 public:
     // Create an empty path.
     SplashPath();
-
-    // Copy a path.
-    SplashPath *copy() const { return new SplashPath(this); }
-
     ~SplashPath();
 
     SplashPath(const SplashPath &) = delete;
@@ -122,7 +118,6 @@ public:
     void reserve(int n);
 
 protected:
-    explicit SplashPath(const SplashPath *path);
     void grow(int nPts);
     bool noCurrentPoint() { return curSubpath == length; }
     bool onePointSubpath() { return curSubpath == length - 1; }


More information about the poppler mailing list