Bug 838178 - Remove dom/bindings/stubgenerator; r=ehsan
authorMs2ger <ms2ger@gmail.com>
Tue, 12 Feb 2013 11:14:01 +0100
changeset 131396 2ff34df6167fde26f6f87cc1462d332cb47d71ba
parent 131395 79ebe1a5d8f4329e0dc80ad1a593a43dbcdeec3b
child 131397 bca5bd2cd0e1e0923151ed8f3ecc3d014ddd5eb5
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs838178
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 838178 - Remove dom/bindings/stubgenerator; r=ehsan
dom/bindings/stubgenerator/Skeleton.cpp
dom/bindings/stubgenerator/Skeleton.h
dom/bindings/stubgenerator/generate.sh
deleted file mode 100644
--- a/dom/bindings/stubgenerator/Skeleton.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* vim:set ts=2 sw=2 sts=2 et cindent: */
-/* 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 "Skeleton.h"
-#include "mozilla/dom/SkeletonBinding.h"
-#include "nsContentUtils.h"
-
-namespace mozilla {
-namespace dom {
-
-NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE_0(Skeleton)
-NS_IMPL_CYCLE_COLLECTING_ADDREF(Skeleton)
-NS_IMPL_CYCLE_COLLECTING_RELEASE(Skeleton)
-NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(Skeleton)
-  NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
-  NS_INTERFACE_MAP_ENTRY(nsISupports)
-NS_INTERFACE_MAP_END
-
-Skeleton::Skeleton()
-{
-  SetIsDOMBinding();
-}
-
-Skeleton::~Skeleton()
-{
-}
-
-JSObject*
-Skeleton::WrapObject(JSContext* aCx, JSObject* aScope,
-                         bool* aTriedToWrap)
-{
-  return SkeletonBinding::Wrap(aCx, aScope, this, aTriedToWrap);
-}
-
-}
-}
-
deleted file mode 100644
--- a/dom/bindings/stubgenerator/Skeleton.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* vim:set ts=2 sw=2 sts=2 et cindent: */
-/* 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/. */
-
-#pragma once
-
-#include "nsWrapperCache.h"
-#include "nsCycleCollectionParticipant.h"
-#include "mozilla/Attributes.h"
-
-struct JSContext;
-
-namespace mozilla {
-namespace dom {
-
-class Skeleton MOZ_FINAL : public nsISupports,
-                           public nsWrapperCache
-{
-public:
-  Skeleton();
-  ~Skeleton();
-
-  NS_DECL_CYCLE_COLLECTING_ISUPPORTS
-  NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(Skeleton)
-
-  void* GetParentObject() const
-  {
-    // TODO: return something sensible here, and change the return type
-    return somethingSensible;
-  }
-
-  virtual JSObject* WrapObject(JSContext* aCx, JSObject* aScope,
-                               bool* aTriedToWrap);
-};
-
-}
-}
-
deleted file mode 100644
--- a/dom/bindings/stubgenerator/generate.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash
-# This script creates a skeleton implementation for a C++ class which
-# implements a Web IDL interface.
-
-# This script is released into the public domain.
-
-if [ -z "$1" ]; then
-  echo usage: ./generate.sh ClassName
-  exit 1
-fi
-
-expression="s/Skeleton/$1/g"
-
-sed "$expression" < Skeleton.h > "$1.h"
-sed "$expression" < Skeleton.cpp > "$1.cpp"
-