From f6ce4d130e114c3b9aa273c20c6d1cb1b8b26220 Mon Sep 17 00:00:00 2001 From: Jim Derry Date: Sat, 18 Feb 2017 16:46:20 -0500 Subject: [PATCH] Removed deprecated tidyAttrGetSOMETHING from API. --- include/tidy.h | 57 ---------------- src/attrget.c | 182 ------------------------------------------------- 2 files changed, 239 deletions(-) diff --git a/include/tidy.h b/include/tidy.h index cf41031..4ffb8db 100644 --- a/include/tidy.h +++ b/include/tidy.h @@ -852,63 +852,6 @@ TIDY_EXPORT Bool TIDY_CALL tidyAttrIsEvent( TidyAttr tattr ); TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetById( TidyNode tnod, TidyAttrId attId ); -/** @defgroup AttrGetAttributeName Deprecated attribute retrieval per AttrId -** -** @deprecated The functions tidyAttrGet{AttributeName} are deprecated and -** should be replaced by tidyAttrGetById. -** For instance, tidyAttrGetID( TidyNode tnod ) can be replaced by -** tidyAttrGetById( TidyNode tnod, TidyAttr_ID ). This avoids a potential -** name clash with tidyAttrGetId for case-insensitive languages. -** @{ -*/ -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetHREF( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetSRC( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetID( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetNAME( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetSUMMARY( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetALT( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetLONGDESC( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetUSEMAP( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetISMAP( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetLANGUAGE( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetTYPE( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetVALUE( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetCONTENT( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetTITLE( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetXMLNS( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetDATAFLD( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetWIDTH( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetHEIGHT( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetFOR( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetSELECTED( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetCHECKED( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetLANG( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetTARGET( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetHTTP_EQUIV( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetREL( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEMOVE( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEDOWN( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEUP( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnCLICK( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEOVER( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEOUT( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnKEYDOWN( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnKEYUP( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnKEYPRESS( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnFOCUS( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnBLUR( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetBGCOLOR( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetLINK( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetALINK( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetVLINK( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetTEXT( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetSTYLE( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetABBR( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetCOLSPAN( TidyNode tnod ); -TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetROWSPAN( TidyNode tnod ); - -/** @} End AttrGetAttributeName group */ - /** @} end AttrGet group */ diff --git a/src/attrget.c b/src/attrget.c index 6562cc2..1e857b1 100644 --- a/src/attrget.c +++ b/src/attrget.c @@ -15,188 +15,6 @@ TidyAttr TIDY_CALL tidyAttrGetById( TidyNode tnod, TidyAttrId attId ) Node* nimp = tidyNodeToImpl(tnod); return tidyImplToAttr( TY_(AttrGetById)( nimp, attId ) ); } -TidyAttr TIDY_CALL tidyAttrGetHREF( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetHREF( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetSRC( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetSRC( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetID( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetID( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetNAME( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetNAME( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetSUMMARY( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetSUMMARY( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetALT( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetALT( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetLONGDESC( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetLONGDESC( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetUSEMAP( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetUSEMAP( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetISMAP( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetISMAP( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetLANGUAGE( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetLANGUAGE( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetTYPE( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetTYPE( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetVALUE( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetVALUE( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetCONTENT( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetCONTENT( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetTITLE( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetTITLE( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetXMLNS( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetXMLNS( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetDATAFLD( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetDATAFLD( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetWIDTH( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetWIDTH( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetHEIGHT( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetHEIGHT( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetFOR( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetFOR( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetSELECTED( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetSELECTED( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetCHECKED( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetCHECKED( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetLANG( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetLANG( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetTARGET( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetTARGET( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetHTTP_EQUIV( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetHTTP_EQUIV( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetREL( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetREL( tidyNodeToImpl(tnod) ) ); -} - -TidyAttr TIDY_CALL tidyAttrGetOnMOUSEMOVE( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetOnMOUSEMOVE( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetOnMOUSEDOWN( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetOnMOUSEDOWN( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetOnMOUSEUP( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetOnMOUSEUP( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetOnCLICK( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetOnCLICK( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetOnMOUSEOVER( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetOnMOUSEOVER( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetOnMOUSEOUT( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetOnMOUSEOUT( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetOnKEYDOWN( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetOnKEYDOWN( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetOnKEYUP( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetOnKEYUP( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetOnKEYPRESS( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetOnKEYPRESS( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetOnFOCUS( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetOnFOCUS( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetOnBLUR( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetOnBLUR( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetBGCOLOR( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetBGCOLOR( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetLINK( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetLINK( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetALINK( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetALINK( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetVLINK( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetVLINK( tidyNodeToImpl(tnod) ) ); -} - -TidyAttr TIDY_CALL tidyAttrGetTEXT( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetTEXT( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetSTYLE( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetSTYLE( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetABBR( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetABBR( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetCOLSPAN( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetCOLSPAN( tidyNodeToImpl(tnod) ) ); -} -TidyAttr TIDY_CALL tidyAttrGetROWSPAN( TidyNode tnod ) -{ - return tidyImplToAttr( attrGetROWSPAN( tidyNodeToImpl(tnod) ) ); -} /* * local variables: