File: 0032-Revert-String-representation-of-Image-for-debugging.patch

package info (click to toggle)
calibre 8.5.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 431,828 kB
  • sloc: python: 450,752; ansic: 87,218; javascript: 57,667; cpp: 18,719; xml: 1,244; sh: 935; sql: 735; objc: 330; makefile: 68; sed: 3
file content (35 lines) | stat: -rw-r--r-- 1,138 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: YOKOTA Hiroshi <yokota.hgml@gmail.com>
Date: Sun, 24 Sep 2023 23:06:20 +0900
Subject: Revert "String representation of /Image for debugging"

Forwarded: not-needed

This reverts commit bfbb4f1c48c4ba8b02f75905db3c93af0905a349.
---
 src/calibre/utils/podofo/images.cpp | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/calibre/utils/podofo/images.cpp b/src/calibre/utils/podofo/images.cpp
index 6425826..9fa0d18 100644
--- a/src/calibre/utils/podofo/images.cpp
+++ b/src/calibre/utils/podofo/images.cpp
@@ -6,8 +6,6 @@
  */
 
 #include "global.h"
-#include <functional>
-#include <string>
 
 using namespace pdf;
 
@@ -51,10 +49,6 @@ class Image {
         }
         std::size_t hash() const noexcept { return buf.size(); }
         const PdfReference& reference() const noexcept { return ref; }
-        std::string ToString() const {
-            std::hash<std::string> s;
-            return "Image(ref=" + ref.ToString() + ", width="s + std::to_string(width) + ", height="s + std::to_string(height) + ", smask="s + smask.ToString() + ", digest=" + std::to_string(s(buf)) + ")";
-        }
 };
 
 struct ImageHasher {