common/RenderTiles.hpp |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit d5d74d39f90489593172dca55ed7a29fe5b6a244
Author:     Tor Lillqvist <[email protected]>
AuthorDate: Wed Jul 15 11:52:15 2020 +0300
Commit:     Tor Lillqvist <[email protected]>
CommitDate: Wed Jul 15 14:32:16 2020 +0200

    Avoid a few unused variables and functions in the iOS case
    
    Change-Id: I11f9186dc9502ad99eee303a46b22ece72230666
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98803
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Tor Lillqvist <[email protected]>

diff --git a/common/RenderTiles.hpp b/common/RenderTiles.hpp
index 1385665a7..011503f12 100644
--- a/common/RenderTiles.hpp
+++ b/common/RenderTiles.hpp
@@ -354,6 +354,7 @@ namespace RenderTiles
         unsigned char *data() { return _data; }
     };
 
+#ifndef IOS
     static void pushRendered(std::vector<TileDesc> &renderedTiles,
                              const TileDesc &desc, TileWireId wireId, size_t 
imgSize)
     {
@@ -361,6 +362,7 @@ namespace RenderTiles
         renderedTiles.back().setWireId(wireId);
         renderedTiles.back().setImgSize(imgSize);
     }
+#endif
 
 #ifdef IOS
 
@@ -516,8 +518,6 @@ namespace RenderTiles
 
         RenderTiles::Buffer pixmap(pixmapWidth, pixmapHeight);
 
-        const size_t pixmapSize = 4 * pixmapWidth * pixmapHeight;
-
         // Render the whole area
         const double area = pixmapWidth * pixmapHeight;
         auto start = std::chrono::system_clock::now();
@@ -602,6 +602,7 @@ namespace RenderTiles
 
         const auto mode = 
static_cast<LibreOfficeKitTileMode>(document->getTileMode());
 
+        const size_t pixmapSize = 4 * pixmapWidth * pixmapHeight;
         std::vector<char> output;
         output.reserve(pixmapSize);
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to