From 8e9a7cac42d554402a6ead3a83ae8b7defc9247b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 10 Mar 2016 19:21:15 +0100 Subject: No more need for jfw_freeJavaInfo Change-Id: I2426a76936b4099a243ce8c102da867e7868aac3 --- include/jvmfwk/framework.hxx | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'include') diff --git a/include/jvmfwk/framework.hxx b/include/jvmfwk/framework.hxx index 184b2c19b439..e88ae4be0b15 100644 --- a/include/jvmfwk/framework.hxx +++ b/include/jvmfwk/framework.hxx @@ -208,9 +208,7 @@ typedef enum _javaFrameworkError

Instances of this struct are created by the plug-in libraries which are used by - this framework (jvmfwk/vendorplugin.h). - For convenience this API provides the function jfw_freeJavaInfo - which frees the objects properly.

+ this framework (jvmfwk/vendorplugin.h).

*/ struct JavaInfo { @@ -257,13 +255,6 @@ struct JavaInfo rtl::ByteSequence arVendorData; }; -/** frees the memory of a JavaInfo object. - @param pInfo - The object which is to be freed. It can be NULL; - */ -JVMFWK_DLLPUBLIC void jfw_freeJavaInfo(JavaInfo *pInfo); - - /** compares two JavaInfo objects for equality.

Two JavaInfo objects are said to be equal if the contained @@ -362,7 +353,7 @@ JVMFWK_DLLPUBLIC javaFrameworkError jfw_isVMRunning(sal_Bool *bRunning); @param ppInfo [out] a JavaInfo pointer, representing the selected JRE. - The caller has to free it by calling jfw_freeJavaInfo. The + The caller has to delete it. The JavaInfo is for informational purposes only. It is not necessary to call jfw_setSelectedJRE afterwards.
ppInfocan be NULL. If *ppInfo is not null, then it is @@ -393,7 +384,7 @@ JVMFWK_DLLPUBLIC javaFrameworkError jfw_findAndSelectJRE(JavaInfo **pInfo); [out] on returns it contains a pointer to an array of JavaInfo pointers. The caller must free the array with rtl_freeMemory and each - element of the array must be freed with jfw_freeJavaInfo. + element of the array must be deleted. @param pSize [out] on return contains the size of array returned in parInfo. @@ -750,8 +741,8 @@ JVMFWK_DLLPUBLIC javaFrameworkError jfw_existJRE(const JavaInfo *pInfo, sal_Bool should be called. That is, jfw_startVM which uses the settings cannot be called before all settings have be made.

- The only functions which are not effected by jfw_lock are - jfw_freeJavaInfo and jfw_areEqualJavaInfo. + The only functions which is not effected by jfw_lock is + jfw_areEqualJavaInfo. */ JVMFWK_DLLPUBLIC void jfw_lock(); -- cgit