From 140deadc0cb8035c05aaabebe05d6aa6c5291829 Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Wed, 11 Jul 2018 21:40:03 +0000 Subject: Remove clunky mark property value getters by index. The key getters are necessary to list the properties, but after getting those keys, the *ByKey functions can be called. These functions are therefore unnecessary. In a follow-up CL, I will remove the "ByKey" suffix from the other versions. Bug: pdfium:1037 Change-Id: I02760025470a295971c4900fce1b6a8bbc7a5820 Reviewed-on: https://pdfium-review.googlesource.com/37590 Commit-Queue: Henrique Nakashima Reviewed-by: Lei Zhang --- public/fpdf_edit.h | 39 --------------------------------------- 1 file changed, 39 deletions(-) (limited to 'public') diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h index e6f193a37b..5e3efb5825 100644 --- a/public/fpdf_edit.h +++ b/public/fpdf_edit.h @@ -369,17 +369,6 @@ FPDFPageObjMark_GetParamKey(FPDF_PAGEOBJECTMARK mark, void* buffer, unsigned long buflen); -// Experimental API. -// Get the type of the value of a property in a content mark. -// -// mark - handle to a content mark. -// index - index of the property. -// -// Returns the type of the value, or FPDF_OBJECT_UNKNOWN in case of failure. -FPDF_EXPORT FPDF_OBJECT_TYPE FPDF_CALLCONV -FPDFPageObjMark_GetParamValueType(FPDF_PAGEOBJECTMARK mark, - unsigned long index); - // Experimental API. // Get the type of the value of a property in a content mark by key. // @@ -391,18 +380,6 @@ FPDF_EXPORT FPDF_OBJECT_TYPE FPDF_CALLCONV FPDFPageObjMark_GetParamValueTypeByKey(FPDF_PAGEOBJECTMARK mark, FPDF_BYTESTRING key); -// Experimental API. -// Get the value of a number property in a content mark as int. -// FPDFPageObjMark_GetParamValueType() should have returned FPDF_OBJECT_NUMBER -// for this property. -// -// mark - handle to a content mark. -// index - index of the property. -// -// Returns the int value, 0 in case of failure. -FPDF_EXPORT int FPDF_CALLCONV -FPDFPageObjMark_GetParamIntValue(FPDF_PAGEOBJECTMARK mark, unsigned long index); - // Experimental API. // Get the value of a number property in a content mark by key as int. // FPDFPageObjMark_GetParamValueType() should have returned FPDF_OBJECT_NUMBER @@ -419,22 +396,6 @@ FPDFPageObjMark_GetParamIntValueByKey(FPDF_PAGEOBJECTMARK mark, FPDF_BYTESTRING key, int* out_value); -// Experimental API. -// Get the value of a string property in a content mark. -// |buffer| is only modified if |buflen| is longer than the length of the value. -// -// mark - handle to a content mark. -// index - index of the property. -// buffer - buffer for holding the returned value in UTF16-LE. -// buflen - length of the buffer. -// -// Returns the length of the value. -FPDF_EXPORT unsigned long FPDF_CALLCONV -FPDFPageObjMark_GetParamStringValue(FPDF_PAGEOBJECTMARK mark, - unsigned long index, - void* buffer, - unsigned long buflen); - // Experimental API. // Get the value of a string property in a content mark by key. // |buffer| is only modified if |buflen| is longer than the length of the value. -- cgit v1.2.3