diff options
author | Hubert Figuière <hub@figuiere.net> | 2019-01-05 12:12:24 -0500 |
---|---|---|
committer | Hubert Figuière <hub@figuiere.net> | 2019-01-05 12:12:24 -0500 |
commit | 95d31adbbfd2d360dc46ee6eb589d645787e2096 (patch) | |
tree | 584d8f33c134e99c6da107d7a082487e0291b518 | |
parent | 3a0c264e3ff145731486692fb6a0b78a2e18b010 (diff) |
xmp_sdk: remove dead code
-rw-r--r-- | XMPCore/source/WXMPMeta.cpp | 41 | ||||
-rw-r--r-- | XMPCore/source/XMPMeta.cpp | 42 | ||||
-rw-r--r-- | XMPCore/source/XMPMeta.hpp | 9 | ||||
-rw-r--r-- | public/include/client-glue/TXMPMeta.incl_cpp | 26 | ||||
-rw-r--r-- | public/include/client-glue/WXMPMeta.hpp | 22 |
5 files changed, 0 insertions, 140 deletions
diff --git a/XMPCore/source/WXMPMeta.cpp b/XMPCore/source/WXMPMeta.cpp index 5ccec3a..30c5316 100644 --- a/XMPCore/source/WXMPMeta.cpp +++ b/XMPCore/source/WXMPMeta.cpp @@ -151,18 +151,6 @@ WXMPMeta_GetGlobalOptions_1 ( WXMP_Result * wResult ) // ------------------------------------------------------------------------------------------------- /* class static */ void -WXMPMeta_SetGlobalOptions_1 ( XMP_OptionBits options, - WXMP_Result * wResult ) -{ - XMP_ENTER_Static ( "WXMPMeta_SetGlobalOptions_1" ) - - XMPMeta::SetGlobalOptions ( options ); - - XMP_EXIT -} -// ------------------------------------------------------------------------------------------------- - -/* class static */ void WXMPMeta_DumpNamespaces_1 ( XMP_TextOutputProc outProc, void * refCon, WXMP_Result * wResult ) @@ -248,21 +236,6 @@ WXMPMeta_GetNamespaceURI_1 ( XMP_StringPtr namespacePrefix, XMP_EXIT } -// ------------------------------------------------------------------------------------------------- - -/* class static */ void -WXMPMeta_DeleteNamespace_1 ( XMP_StringPtr namespaceURI, - WXMP_Result * wResult ) -{ - XMP_ENTER_Static ( "WXMPMeta_DeleteNamespace_1" ) - - if ( (namespaceURI == 0) || (*namespaceURI == 0) ) XMP_Throw ( "Empty namespace URI", kXMPErr_BadSchema ); - - XMPMeta::DeleteNamespace ( namespaceURI ); - - XMP_EXIT -} - // ================================================================================================= // Class Method Wrappers // ===================== @@ -1146,20 +1119,6 @@ WXMPMeta_GetObjectOptions_1 ( XMPMetaRef xmpObjRef, // ------------------------------------------------------------------------------------------------- void -WXMPMeta_SetObjectOptions_1 ( XMPMetaRef xmpObjRef, - XMP_OptionBits options, - WXMP_Result * wResult ) -{ - XMP_ENTER_ObjWrite ( XMPMeta, "WXMPMeta_SetObjectOptions_1" ) - - thiz->SetObjectOptions ( options ); - - XMP_EXIT -} - -// ------------------------------------------------------------------------------------------------- - -void WXMPMeta_ParseFromBuffer_1 ( XMPMetaRef xmpObjRef, XMP_StringPtr buffer, XMP_StringLen bufferSize, diff --git a/XMPCore/source/XMPMeta.cpp b/XMPCore/source/XMPMeta.cpp index 445931f..9d31d1d 100644 --- a/XMPCore/source/XMPMeta.cpp +++ b/XMPCore/source/XMPMeta.cpp @@ -1028,19 +1028,6 @@ XMPMeta::GetGlobalOptions() // ------------------------------------------------------------------------------------------------- -// SetGlobalOptions -// ---------------- - -/* class-static */ void -XMPMeta::SetGlobalOptions ( XMP_OptionBits /*options*/ ) -{ - - XMP_Throw("Unimplemented method XMPMeta::SetGlobalOptions", kXMPErr_Unimplemented); - -} // SetGlobalOptions - - -// ------------------------------------------------------------------------------------------------- // RegisterNamespace // ----------------- @@ -1096,23 +1083,6 @@ XMPMeta::GetNamespaceURI ( XMP_StringPtr namespacePrefix, } // GetNamespaceURI -// ------------------------------------------------------------------------------------------------- -// DeleteNamespace -// --------------- - -// *** Don't allow standard namespaces to be deleted. -// *** We would be better off not having this. Instead, have local namespaces from parsing be -// *** restricted to the object that introduced them. - -/* class-static */ void -XMPMeta::DeleteNamespace ( XMP_StringPtr /*namespaceURI*/ ) -{ - - XMP_Throw ( "Unimplemented method XMPMeta::DeleteNamespace", kXMPErr_Unimplemented ); - -} // DeleteNamespace - - // ================================================================================================= // Class Methods // ============= @@ -1264,18 +1234,6 @@ XMPMeta::GetObjectOptions() const // ------------------------------------------------------------------------------------------------- -// SetObjectOptions -// ---------------- - -void -XMPMeta::SetObjectOptions ( XMP_OptionBits /*options*/ ) -{ - XMP_Throw ( "Unimplemented method XMPMeta::SetObjectOptions", kXMPErr_Unimplemented ); - -} // SetObjectOptions - - -// ------------------------------------------------------------------------------------------------- // Sort // ---- // diff --git a/XMPCore/source/XMPMeta.hpp b/XMPCore/source/XMPMeta.hpp index e05f69d..7e4d7ad 100644 --- a/XMPCore/source/XMPMeta.hpp +++ b/XMPCore/source/XMPMeta.hpp @@ -48,9 +48,6 @@ public: static XMP_OptionBits GetGlobalOptions(); - - static void - SetGlobalOptions ( XMP_OptionBits options ); // --------------------------------------------------------------------------------------------- @@ -75,9 +72,6 @@ public: GetNamespaceURI ( XMP_StringPtr namespacePrefix, XMP_StringPtr * namespaceURI, XMP_StringLen * uriSize ); - - static void - DeleteNamespace ( XMP_StringPtr namespaceURI ); // --------------------------------------------------------------------------------------------- @@ -300,9 +294,6 @@ public: XMP_OptionBits GetObjectOptions() const; - - void - SetObjectOptions ( XMP_OptionBits options ); virtual void Sort(); diff --git a/public/include/client-glue/TXMPMeta.incl_cpp b/public/include/client-glue/TXMPMeta.incl_cpp index 7f67a3a..6fab638 100644 --- a/public/include/client-glue/TXMPMeta.incl_cpp +++ b/public/include/client-glue/TXMPMeta.incl_cpp @@ -261,16 +261,6 @@ GetGlobalOptions() // ------------------------------------------------------------------------------------------------- -XMP_MethodIntro(TXMPMeta,void):: -SetGlobalOptions ( XMP_OptionBits options ) -{ - WrapCheckVoid ( zXMPMeta_SetGlobalOptions_1 ( options ) ); -} - -// ------------------------------------------------------------------------------------------------- - -// ------------------------------------------------------------------------------------------------- - XMP_MethodIntro(TXMPMeta,XMP_Status):: DumpNamespaces ( XMP_TextOutputProc outProc, void * refCon ) @@ -311,14 +301,6 @@ GetNamespaceURI ( XMP_StringPtr namespacePrefix, return found; } -// ------------------------------------------------------------------------------------------------- - -XMP_MethodIntro(TXMPMeta,void):: -DeleteNamespace ( XMP_StringPtr namespaceURI ) -{ - WrapCheckVoid ( zXMPMeta_DeleteNamespace_1 ( namespaceURI ) ); -} - // ================================================================================================= // Basic property manipulation functions // ===================================== @@ -800,14 +782,6 @@ GetObjectOptions() const // ------------------------------------------------------------------------------------------------- XMP_MethodIntro(TXMPMeta,void):: -SetObjectOptions ( XMP_OptionBits options ) -{ - WrapCheckVoid ( zXMPMeta_SetObjectOptions_1 ( options ) ); -} - -// ------------------------------------------------------------------------------------------------- - -XMP_MethodIntro(TXMPMeta,void):: Sort() { WrapCheckVoid ( zXMPMeta_Sort_1() ); diff --git a/public/include/client-glue/WXMPMeta.hpp b/public/include/client-glue/WXMPMeta.hpp index 28a8cdd..919cb8f 100644 --- a/public/include/client-glue/WXMPMeta.hpp +++ b/public/include/client-glue/WXMPMeta.hpp @@ -45,9 +45,6 @@ inline XMP_Bool WrapErrorNotify ( XMPMeta_ErrorCallbackProc proc, void * context #define zXMPMeta_GetGlobalOptions_1() \ WXMPMeta_GetGlobalOptions_1 ( &wResult ) -#define zXMPMeta_SetGlobalOptions_1(options) \ - WXMPMeta_SetGlobalOptions_1 ( options, &wResult ) - #define zXMPMeta_DumpNamespaces_1(outProc,refCon) \ WXMPMeta_DumpNamespaces_1 ( outProc, refCon, &wResult ) @@ -62,9 +59,6 @@ inline XMP_Bool WrapErrorNotify ( XMPMeta_ErrorCallbackProc proc, void * context #define zXMPMeta_GetNamespaceURI_1(namespacePrefix,namespaceURI,SetClientString) \ WXMPMeta_GetNamespaceURI_1 ( namespacePrefix, namespaceURI, SetClientString, &wResult ) -#define zXMPMeta_DeleteNamespace_1(namespaceURI) \ - WXMPMeta_DeleteNamespace_1 ( namespaceURI, &wResult ) - #define zXMPMeta_GetIXMPMetadata_1() \ WXMPMeta_GetIXMPMetadata_1( this->xmpRef, &wResult ) @@ -166,9 +160,6 @@ inline XMP_Bool WrapErrorNotify ( XMPMeta_ErrorCallbackProc proc, void * context #define zXMPMeta_GetObjectOptions_1() \ WXMPMeta_GetObjectOptions_1 ( this->xmpRef, &wResult ) -#define zXMPMeta_SetObjectOptions_1(options) \ - WXMPMeta_SetObjectOptions_1 ( this->xmpRef, options, &wResult ) - #define zXMPMeta_Sort_1() \ WXMPMeta_Sort_1 ( this->xmpRef, &wResult ) @@ -225,10 +216,6 @@ XMP_PUBLIC WXMPMeta_DecrementRefCount_1 ( XMPMetaRef xmpRef ); extern void XMP_PUBLIC WXMPMeta_GetGlobalOptions_1 ( WXMP_Result * wResult ); -extern void -XMP_PUBLIC WXMPMeta_SetGlobalOptions_1 ( XMP_OptionBits options, - WXMP_Result * wResult ); - // ------------------------------------------------------------------------------------------------- extern void @@ -261,10 +248,6 @@ XMP_PUBLIC WXMPMeta_GetNamespaceURI_1 ( XMP_StringPtr namespacePrefix, SetClientStringProc SetClientString, WXMP_Result * wResult ); -extern void -XMP_PUBLIC WXMPMeta_DeleteNamespace_1 ( XMP_StringPtr namespaceURI, - WXMP_Result * wResult ); - // ------------------------------------------------------------------------------------------------- extern void @@ -555,11 +538,6 @@ XMP_PUBLIC WXMPMeta_GetObjectOptions_1 ( XMPMetaRef xmpRef, WXMP_Result * wResult ) /* const */ ; extern void -XMP_PUBLIC WXMPMeta_SetObjectOptions_1 ( XMPMetaRef xmpRef, - XMP_OptionBits options, - WXMP_Result * wResult ); - -extern void XMP_PUBLIC WXMPMeta_Sort_1 ( XMPMetaRef xmpRef, WXMP_Result * wResult ); |