Bug 817273 - Kill dead nsXPathNamespace files; r=sicking
authorMs2ger <ms2ger@gmail.com>
Sat, 22 Dec 2012 09:17:05 +0100
changeset 116677 c57d847ecf703d5b7ab53c751ee2b510ff1fa77d
parent 116676 d78fba69a62b5c4883df89fdf317aa8d81ba15ab
child 116678 23817988285b65fc89b3301cda0385e41ed3cd56
push idunknown
push userunknown
push dateunknown
reviewerssicking
bugs817273
milestone20.0a1
Bug 817273 - Kill dead nsXPathNamespace files; r=sicking
content/xslt/src/xpath/nsXPathNamespace.cpp
content/xslt/src/xpath/nsXPathNamespace.h
deleted file mode 100644
--- a/content/xslt/src/xpath/nsXPathNamespace.cpp
+++ /dev/null
@@ -1,172 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-#include "nsXPathNamespace.h"
-#include "nsDOMClassInfoID.h"
-
-NS_IMPL_ADDREF(nsXPathNamespace)
-NS_IMPL_RELEASE(nsXPathNamespace)
-
-DOMCI_DATA(XPathNamespace, nsXPathNamespace)
-
-NS_INTERFACE_MAP_BEGIN(nsXPathNamespace)
-  NS_INTERFACE_MAP_ENTRY(nsIDOMXPathNamespace)
-  NS_INTERFACE_MAP_ENTRY(nsIDOMNode)
-  NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIDOMXPathNamespace)
-  NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(XPathNamespace)
-NS_INTERFACE_MAP_END
-
-/* readonly attribute DOMString nodeName; */
-NS_IMETHODIMP nsXPathNamespace::GetNodeName(nsAString & aNodeName)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* attribute DOMString nodeValue; */
-NS_IMETHODIMP nsXPathNamespace::GetNodeValue(nsAString & aNodeValue)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-NS_IMETHODIMP nsXPathNamespace::SetNodeValue(const nsAString & aNodeValue)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* readonly attribute unsigned short nodeType; */
-NS_IMETHODIMP nsXPathNamespace::GetNodeType(uint16_t *aNodeType)
-{
-    *aNodeType = XPATH_NAMESPACE_NODE;
-    return NS_OK;
-}
-
-/* readonly attribute nsIDOMNode parentNode; */
-NS_IMETHODIMP nsXPathNamespace::GetParentNode(nsIDOMNode * *aParentNode)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* readonly attribute nsIDOMNodeList childNodes; */
-NS_IMETHODIMP nsXPathNamespace::GetChildNodes(nsIDOMNodeList * *aChildNodes)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* readonly attribute nsIDOMNode firstChild; */
-NS_IMETHODIMP nsXPathNamespace::GetFirstChild(nsIDOMNode * *aFirstChild)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* readonly attribute nsIDOMNode lastChild; */
-NS_IMETHODIMP nsXPathNamespace::GetLastChild(nsIDOMNode * *aLastChild)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* readonly attribute nsIDOMNode previousSibling; */
-NS_IMETHODIMP nsXPathNamespace::GetPreviousSibling(nsIDOMNode * *aPreviousSibling)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* readonly attribute nsIDOMNode nextSibling; */
-NS_IMETHODIMP nsXPathNamespace::GetNextSibling(nsIDOMNode * *aNextSibling)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* readonly attribute nsIDOMNamedNodeMap attributes; */
-NS_IMETHODIMP nsXPathNamespace::GetAttributes(nsIDOMNamedNodeMap * *aAttributes)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* readonly attribute nsIDOMDocument ownerDocument; */
-NS_IMETHODIMP nsXPathNamespace::GetOwnerDocument(nsIDOMDocument * *aOwnerDocument)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* nsIDOMNode insertBefore (in nsIDOMNode newChild, in nsIDOMNode refChild)  raises (DOMException); */
-NS_IMETHODIMP nsXPathNamespace::InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **aResult)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* nsIDOMNode replaceChild (in nsIDOMNode newChild, in nsIDOMNode oldChild)  raises (DOMException); */
-NS_IMETHODIMP nsXPathNamespace::ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **aResult)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* nsIDOMNode removeChild (in nsIDOMNode oldChild)  raises (DOMException); */
-NS_IMETHODIMP nsXPathNamespace::RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **aResult)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* nsIDOMNode appendChild (in nsIDOMNode newChild)  raises (DOMException); */
-NS_IMETHODIMP nsXPathNamespace::AppendChild(nsIDOMNode *newChild, nsIDOMNode **aResult)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* boolean hasChildNodes (); */
-NS_IMETHODIMP nsXPathNamespace::HasChildNodes(bool *aResult)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* nsIDOMNode cloneNode (in boolean deep); */
-NS_IMETHODIMP nsXPathNamespace::CloneNode(bool deep, uint8_t aOptionalArgc, nsIDOMNode **aResult)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* void normalize (); */
-NS_IMETHODIMP nsXPathNamespace::Normalize()
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* boolean isSupported (in DOMString feature, in DOMString version); */
-NS_IMETHODIMP nsXPathNamespace::IsSupported(const nsAString & feature, const nsAString & version, bool *aResult)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* readonly attribute DOMString namespaceURI; */
-NS_IMETHODIMP nsXPathNamespace::GetNamespaceURI(nsAString & aNamespaceURI)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* attribute DOMString prefix; */
-NS_IMETHODIMP nsXPathNamespace::GetPrefix(nsAString & aPrefix)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-NS_IMETHODIMP nsXPathNamespace::SetPrefix(const nsAString & aPrefix)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* readonly attribute DOMString localName; */
-NS_IMETHODIMP nsXPathNamespace::GetLocalName(nsAString & aLocalName)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* boolean hasAttributes (); */
-NS_IMETHODIMP nsXPathNamespace::HasAttributes(bool *aResult)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
-
-/* readonly attribute nsIDOMElement ownerElement; */
-NS_IMETHODIMP nsXPathNamespace::GetOwnerElement(nsIDOMElement * *aOwnerElement)
-{
-    return NS_ERROR_NOT_IMPLEMENTED;
-}
deleted file mode 100644
--- a/content/xslt/src/xpath/nsXPathNamespace.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-#ifndef nsXPathNamespace_h__
-#define nsXPathNamespace_h__
-
-#include "nsIDOMXPathNamespace.h"
-
-/* d0a75e07-b5e7-11d5-a7f2-df109fb8a1fc */
-#define TRANSFORMIIX_XPATH_NAMESPACE_CID   \
-{ 0xd0a75e07, 0xb5e7, 0x11d5, { 0xa7, 0xf2, 0xdf, 0x10, 0x9f, 0xb8, 0xa1, 0xfc } }
-
-#define TRANSFORMIIX_XPATH_NAMESPACE_CONTRACTID \
-"@mozilla.org/transformiix/xpath-namespace;1"
-
-/**
- * A class for representing XPath namespace nodes in the DOM.
- */
-class nsXPathNamespace : public nsIDOMXPathNamespace
-{
-public:
-    // nsISupports interface
-    NS_DECL_ISUPPORTS
-
-    // nsIDOMNode interface
-    NS_DECL_NSIDOMNODE
-
-    // nsIDOMXPathNamespace interface
-    NS_DECL_NSIDOMXPATHNAMESPACE
-};
-
-#endif