aboutsummaryrefslogtreecommitdiffstats
path: root/manual
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2020-10-27 15:51:41 +0100
committerJay Berkenbilt <ejb@ql.org>2020-10-27 16:57:48 +0100
commitbcea54fcaa16a7d5feff0c4cd038fea51d1359ea (patch)
tree2c0dc1076a7963c0d9ac77fc8bb87a57ef7ad964 /manual
parent81d2c548dc619e21519651606970c21f720c8658 (diff)
downloadqpdf-bcea54fcaa16a7d5feff0c4cd038fea51d1359ea.tar.zst
Revert removal of unreadCh change for performance
Turns out unreadCh is much more efficient than seek(-1, SEEK_CUR). Update comments and code to reflect this.
Diffstat (limited to 'manual')
-rw-r--r--manual/qpdf-manual.xml22
1 files changed, 0 insertions, 22 deletions
diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml
index 17b778b9..e3afc704 100644
--- a/manual/qpdf-manual.xml
+++ b/manual/qpdf-manual.xml
@@ -4967,28 +4967,6 @@ print "\n";
</listitem>
</itemizedlist>
</listitem>
- <listitem>
- <para>
- Notice of upcoming API change
- </para>
- <itemizedlist>
- <listitem>
- <para>
- The method <function>InputSource::unreadCh(unsigned
- char)</function> is deprecated and will be removed in qpdf
- 11. It has never worked properly to pass a character to
- <function>unreadCh</function> other than the most recently
- read character. If you happen to be deriving a class from
- <type>InputSource</type>, just implement
- <function>unreadCh</function> to seek backward by one
- character if the current position is greater than 0. If you
- are calling this in your own code, replacing with
- <literal>seek(-1, SEEK_CUR)</literal> should work in all
- cases.
- </para>
- </listitem>
- </itemizedlist>
- </listitem>
</itemizedlist>
</listitem>
</varlistentry>