aboutsummaryrefslogtreecommitdiffstats
path: root/meta-efl/recipes-efl/efl/epdf/0001-remove-antialias-functions-poppler-has-dropped-them-.patch
blob: 728ffa6e39fa09d7e01517406a9484b820ac0a92 (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
From 6691ac5fcbac0e766d4410ae649a13957ae85289 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
Date: Thu, 22 Oct 2015 16:27:52 +0200
Subject: [PATCH 1/2] remove antialias functions - poppler has dropped them in
 the API
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The functions removed were not used.

Upstream-Status: pending

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
 src/lib/epdf_main.h                   | 45 -----------------------------------
 src/lib/mupdf/epdf_mupdf_main.c       | 18 --------------
 src/lib/poppler/epdf_poppler_main.cpp | 21 ----------------
 3 files changed, 84 deletions(-)

diff --git a/src/lib/epdf_main.h b/src/lib/epdf_main.h
index 54a57ca..0a79bad 100644
--- a/src/lib/epdf_main.h
+++ b/src/lib/epdf_main.h
@@ -29,49 +29,4 @@ EAPI int epdf_shutdown();
  */
 EAPI const char *epdf_backend_version_get (void);
 
-/**
- * @brief Return the state of fonts antialiasing in Poppler
- *
- * @return EINA_TRUE if fonts antialiasing enabled, EINA_FALSE otherwise.
- *
- * Return EINA_TRUE if the state of fonts antialiasing is enabled in
- * Poppler, EINA_FALSE otherwise.
- *
- * @ingroup Epdf_Main
- */
-EAPI Eina_Bool epdf_fonts_antialias_get (void);
-
-/**
- * @brief Sets fonts antialiasing mode in Poppler
- *
- * @param on EINA_TRUE to enable fonts antialiasing, EINA_FALSE to disable
- *
- * Set @p on to EINA_TRUE to enable fonts antialiasing in Poppler,
- * EINA_FALSE to disable it.
- */
-EAPI void epdf_fonts_antialias_set (Eina_Bool on);
-
-/**
- * @brief Return the state of lines antialiasing in Poppler
- *
- * @return EINA_TRUE if lines antialiasing enabled, EINA_FALSE otherwise.
- *
- * Return EINA_TRUE if the state of lines antialiasing is enabled in
- * Poppler, EINA_FALSE otherwise.
- *
- * @ingroup Epdf_Main
- */
-EAPI Eina_Bool epdf_lines_antialias_get (void);
-
-/**
- * @brief Sets lines antialiasing mode in Poppler
- *
- * @param on EINA_TRUE to enable lines antialiasing, EINA_FALSE to disable
- *
- * Set @p on to EINA_TRUE to enable lines antialiasing in Poppler,
- * EINA_FALSE to disable it.
- */
-EAPI void epdf_lines_antialias_set (Eina_Bool on);
-
-
 #endif /* __EPDF_MAIN_H__ */
diff --git a/src/lib/mupdf/epdf_mupdf_main.c b/src/lib/mupdf/epdf_mupdf_main.c
index 17bb830..27c6de2 100644
--- a/src/lib/mupdf/epdf_mupdf_main.c
+++ b/src/lib/mupdf/epdf_mupdf_main.c
@@ -37,21 +37,3 @@ epdf_backend_version_get (void)
 {
    return "0.5";
 }
-
-Eina_Bool epdf_fonts_antialias_get(void)
-{
-   return EINA_TRUE;
-}
-
-void epdf_fonts_antialias_set(Eina_Bool on)
-{
-}
-
-Eina_Bool epdf_lines_antialias_get(void)
-{
-   return EINA_TRUE;
-}
-
-void epdf_lines_antialias_set(Eina_Bool on)
-{
-}
diff --git a/src/lib/poppler/epdf_poppler_main.cpp b/src/lib/poppler/epdf_poppler_main.cpp
index 9841987..9efdbe8 100644
--- a/src/lib/poppler/epdf_poppler_main.cpp
+++ b/src/lib/poppler/epdf_poppler_main.cpp
@@ -46,24 +46,3 @@ epdf_backend_version_get (void)
 {
   return POPPLER_VERSION;
 }
-
-Eina_Bool epdf_fonts_antialias_get (void)
-{
-  return globalParams->getAntialias();
-}
-
-void epdf_fonts_antialias_set (Eina_Bool on)
-{
-  /* Nice API */
-  globalParams->setAntialias((char*)(on ? "yes" : "no"));
-}
-
-Eina_Bool epdf_lines_antialias_get (void)
-{
-    return globalParams->getVectorAntialias();
-}
-
-void epdf_lines_antialias_set (Eina_Bool on)
-{
-    globalParams->setVectorAntialias((char*)(on ? "yes" : "no"));
-}
-- 
2.1.0