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 {
|