class-static */
| 1122 | // *** restricted to the object that introduced them. |
| 1123 | |
| 1124 | /* class-static */ void |
| 1125 | XMPMeta::DeleteNamespace ( XMP_StringPtr namespaceURI ) |
| 1126 | { |
| 1127 | XMP_StringMapPos uriPos = sNamespaceURIToPrefixMap->find ( namespaceURI ); |
| 1128 | if ( uriPos == sNamespaceURIToPrefixMap->end() ) return; |
| 1129 | |
| 1130 | XMP_StringMapPos prefixPos = sNamespacePrefixToURIMap->find ( uriPos->second ); |
| 1131 | if ( prefixPos == sNamespacePrefixToURIMap->end() ) return; |
| 1132 | |
| 1133 | sNamespaceURIToPrefixMap->erase ( uriPos ); |
| 1134 | sNamespacePrefixToURIMap->erase ( prefixPos ); |
| 1135 | |
| 1136 | } // DeleteNamespace |
| 1137 | |
| 1138 | |
| 1139 | // ------------------------------------------------------------------------------------------------- |