summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibPDF/Document.cpp
diff options
context:
space:
mode:
authorMatthew Olsson <matthewcolsson@gmail.com>2021-05-10 11:50:15 -0700
committerAndreas Kling <kling@serenityos.org>2021-05-18 16:35:23 +0200
commitf7ea1eb6101617e127605173deb381bee84e72e5 (patch)
tree5ce04823ae4676f53ccb198fdc09b40f592995b9 /Userland/Libraries/LibPDF/Document.cpp
parent309105678b64839c671b6fa2450b500276692664 (diff)
downloadserenity-f7ea1eb6101617e127605173deb381bee84e72e5.zip
Applications: Add a very simple PDFViewer
Diffstat (limited to 'Userland/Libraries/LibPDF/Document.cpp')
-rw-r--r--Userland/Libraries/LibPDF/Document.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/Userland/Libraries/LibPDF/Document.cpp b/Userland/Libraries/LibPDF/Document.cpp
index 627593fa73..b5ff2df818 100644
--- a/Userland/Libraries/LibPDF/Document.cpp
+++ b/Userland/Libraries/LibPDF/Document.cpp
@@ -115,23 +115,6 @@ Value Document::resolve(const Value& value)
return obj;
}
-template<IsValueType T>
-UnwrappedValueType<T> Document::resolve_to(const Value& value)
-{
- auto resolved = resolve(value);
-
- if constexpr (IsSame<T, bool>)
- return resolved.as_bool();
- if constexpr (IsSame<T, int>)
- return resolved.as_int();
- if constexpr (IsSame<T, float>)
- return resolved.as_float();
- if constexpr (IsObject<T>)
- return object_cast<T>(resolved.as_object());
-
- VERIFY_NOT_REACHED();
-}
-
void Document::build_page_tree()
{
auto page_tree = m_catalog->get_dict(this, "Pages");