Bug 1017862 - Remove virtual destructor from BaseProxyHandler. (r=jorendorff)

This commit is contained in:
Eric Faust
2014-08-28 13:30:56 -07:00
parent f918a14eec
commit 98caef77fd
13 changed files with 0 additions and 56 deletions

View File

@@ -50,7 +50,6 @@ class CPOWProxyHandler : public BaseProxyHandler
public: public:
CPOWProxyHandler() CPOWProxyHandler()
: BaseProxyHandler(&family) {} : BaseProxyHandler(&family) {}
virtual ~CPOWProxyHandler() {}
virtual bool finalizeInBackground(Value priv) const MOZ_OVERRIDE { virtual bool finalizeInBackground(Value priv) const MOZ_OVERRIDE {
return false; return false;

View File

@@ -90,10 +90,6 @@ BaseProxyHandler::BaseProxyHandler(const void *family, bool hasPrototype, bool h
{ {
} }
BaseProxyHandler::~BaseProxyHandler()
{
}
bool bool
BaseProxyHandler::enter(JSContext *cx, HandleObject wrapper, HandleId id, Action act, BaseProxyHandler::enter(JSContext *cx, HandleObject wrapper, HandleId id, Action act,
bool *bp) const bool *bp) const
@@ -762,7 +758,6 @@ class ScriptedIndirectProxyHandler : public BaseProxyHandler
{ {
public: public:
ScriptedIndirectProxyHandler(); ScriptedIndirectProxyHandler();
virtual ~ScriptedIndirectProxyHandler();
/* ES5 Harmony fundamental proxy traps. */ /* ES5 Harmony fundamental proxy traps. */
virtual bool preventExtensions(JSContext *cx, HandleObject proxy) const MOZ_OVERRIDE; virtual bool preventExtensions(JSContext *cx, HandleObject proxy) const MOZ_OVERRIDE;
@@ -826,10 +821,6 @@ ScriptedIndirectProxyHandler::ScriptedIndirectProxyHandler()
{ {
} }
ScriptedIndirectProxyHandler::~ScriptedIndirectProxyHandler()
{
}
bool bool
ScriptedIndirectProxyHandler::isExtensible(JSContext *cx, HandleObject proxy, ScriptedIndirectProxyHandler::isExtensible(JSContext *cx, HandleObject proxy,
bool *extensible) const bool *extensible) const
@@ -1079,7 +1070,6 @@ const ScriptedIndirectProxyHandler ScriptedIndirectProxyHandler::singleton;
class ScriptedDirectProxyHandler : public DirectProxyHandler { class ScriptedDirectProxyHandler : public DirectProxyHandler {
public: public:
ScriptedDirectProxyHandler(); ScriptedDirectProxyHandler();
virtual ~ScriptedDirectProxyHandler();
/* ES5 Harmony fundamental proxy traps. */ /* ES5 Harmony fundamental proxy traps. */
virtual bool preventExtensions(JSContext *cx, HandleObject proxy) const MOZ_OVERRIDE; virtual bool preventExtensions(JSContext *cx, HandleObject proxy) const MOZ_OVERRIDE;
@@ -1392,10 +1382,6 @@ ScriptedDirectProxyHandler::ScriptedDirectProxyHandler()
{ {
} }
ScriptedDirectProxyHandler::~ScriptedDirectProxyHandler()
{
}
// ES6 (22 May, 2014) 9.5.4 Proxy.[[PreventExtensions]]() // ES6 (22 May, 2014) 9.5.4 Proxy.[[PreventExtensions]]()
bool bool
ScriptedDirectProxyHandler::preventExtensions(JSContext *cx, HandleObject proxy) const ScriptedDirectProxyHandler::preventExtensions(JSContext *cx, HandleObject proxy) const

View File

@@ -127,7 +127,6 @@ class JS_FRIEND_API(BaseProxyHandler)
public: public:
explicit BaseProxyHandler(const void *family, bool hasPrototype = false, explicit BaseProxyHandler(const void *family, bool hasPrototype = false,
bool hasSecurityPolicy = false); bool hasSecurityPolicy = false);
virtual ~BaseProxyHandler();
bool hasPrototype() const { bool hasPrototype() const {
return mHasPrototype; return mHasPrototype;

View File

@@ -134,10 +134,6 @@ Wrapper::Wrapper(unsigned flags, bool hasPrototype, bool hasSecurityPolicy)
{ {
} }
Wrapper::~Wrapper()
{
}
const char Wrapper::family = 0; const char Wrapper::family = 0;
const Wrapper Wrapper::singleton((unsigned)0); const Wrapper Wrapper::singleton((unsigned)0);
const Wrapper Wrapper::singletonWithPrototype((unsigned)0, true); const Wrapper Wrapper::singletonWithPrototype((unsigned)0, true);
@@ -178,10 +174,6 @@ CrossCompartmentWrapper::CrossCompartmentWrapper(unsigned flags, bool hasPrototy
{ {
} }
CrossCompartmentWrapper::~CrossCompartmentWrapper()
{
}
bool Wrapper::finalizeInBackground(Value priv) const bool Wrapper::finalizeInBackground(Value priv) const
{ {
if (!priv.isObject()) if (!priv.isObject())

View File

@@ -83,8 +83,6 @@ class JS_FRIEND_API(Wrapper) : public DirectProxyHandler
explicit Wrapper(unsigned flags, bool hasPrototype = false, bool hasSecurityPolicy = false); explicit Wrapper(unsigned flags, bool hasPrototype = false, bool hasSecurityPolicy = false);
virtual ~Wrapper();
virtual bool finalizeInBackground(Value priv) const MOZ_OVERRIDE; virtual bool finalizeInBackground(Value priv) const MOZ_OVERRIDE;
static const char family; static const char family;
@@ -107,8 +105,6 @@ class JS_FRIEND_API(CrossCompartmentWrapper) : public Wrapper
explicit CrossCompartmentWrapper(unsigned flags, bool hasPrototype = false, explicit CrossCompartmentWrapper(unsigned flags, bool hasPrototype = false,
bool hasSecurityPolicy = false); bool hasSecurityPolicy = false);
virtual ~CrossCompartmentWrapper();
/* ES5 Harmony fundamental wrapper traps. */ /* ES5 Harmony fundamental wrapper traps. */
virtual bool preventExtensions(JSContext *cx, HandleObject wrapper) const MOZ_OVERRIDE; virtual bool preventExtensions(JSContext *cx, HandleObject wrapper) const MOZ_OVERRIDE;
virtual bool getPropertyDescriptor(JSContext *cx, HandleObject wrapper, HandleId id, virtual bool getPropertyDescriptor(JSContext *cx, HandleObject wrapper, HandleId id,

View File

@@ -71,11 +71,6 @@ AddonWrapper<Base>::AddonWrapper(unsigned flags) : Base(flags)
{ {
} }
template<typename Base>
AddonWrapper<Base>::~AddonWrapper()
{
}
template<typename Base> template<typename Base>
bool bool
AddonWrapper<Base>::getPropertyDescriptor(JSContext *cx, HandleObject wrapper, AddonWrapper<Base>::getPropertyDescriptor(JSContext *cx, HandleObject wrapper,

View File

@@ -23,7 +23,6 @@ template<typename Base>
class AddonWrapper : public Base { class AddonWrapper : public Base {
public: public:
AddonWrapper(unsigned flags); AddonWrapper(unsigned flags);
virtual ~AddonWrapper();
virtual bool getPropertyDescriptor(JSContext *cx, JS::Handle<JSObject*> wrapper, virtual bool getPropertyDescriptor(JSContext *cx, JS::Handle<JSObject*> wrapper,
JS::Handle<jsid> id, JS::Handle<jsid> id,

View File

@@ -21,11 +21,6 @@ FilteringWrapper<Base, Policy>::FilteringWrapper(unsigned flags) : Base(flags)
{ {
} }
template <typename Base, typename Policy>
FilteringWrapper<Base, Policy>::~FilteringWrapper()
{
}
template <typename Policy> template <typename Policy>
static bool static bool
Filter(JSContext *cx, HandleObject wrapper, AutoIdVector &props) Filter(JSContext *cx, HandleObject wrapper, AutoIdVector &props)
@@ -194,10 +189,6 @@ CrossOriginXrayWrapper::CrossOriginXrayWrapper(unsigned flags) : SecurityXrayDOM
{ {
} }
CrossOriginXrayWrapper::~CrossOriginXrayWrapper()
{
}
bool bool
CrossOriginXrayWrapper::getPropertyDescriptor(JSContext *cx, CrossOriginXrayWrapper::getPropertyDescriptor(JSContext *cx,
JS::Handle<JSObject*> wrapper, JS::Handle<JSObject*> wrapper,

View File

@@ -24,7 +24,6 @@ template <typename Base, typename Policy>
class FilteringWrapper : public Base { class FilteringWrapper : public Base {
public: public:
FilteringWrapper(unsigned flags); FilteringWrapper(unsigned flags);
virtual ~FilteringWrapper();
virtual bool getPropertyDescriptor(JSContext *cx, JS::Handle<JSObject*> wrapper, virtual bool getPropertyDescriptor(JSContext *cx, JS::Handle<JSObject*> wrapper,
JS::Handle<jsid> id, JS::Handle<jsid> id,
@@ -60,7 +59,6 @@ class FilteringWrapper : public Base {
class CrossOriginXrayWrapper : public SecurityXrayDOM { class CrossOriginXrayWrapper : public SecurityXrayDOM {
public: public:
CrossOriginXrayWrapper(unsigned flags); CrossOriginXrayWrapper(unsigned flags);
virtual ~CrossOriginXrayWrapper();
virtual bool getPropertyDescriptor(JSContext *cx, JS::Handle<JSObject*> wrapper, virtual bool getPropertyDescriptor(JSContext *cx, JS::Handle<JSObject*> wrapper,
JS::Handle<jsid> id, JS::Handle<jsid> id,

View File

@@ -35,10 +35,6 @@ WaiveXrayWrapper::WaiveXrayWrapper(unsigned flags) : js::CrossCompartmentWrapper
{ {
} }
WaiveXrayWrapper::~WaiveXrayWrapper()
{
}
bool bool
WaiveXrayWrapper::getPropertyDescriptor(JSContext *cx, HandleObject wrapper, WaiveXrayWrapper::getPropertyDescriptor(JSContext *cx, HandleObject wrapper,
HandleId id, JS::MutableHandle<JSPropertyDescriptor> desc) HandleId id, JS::MutableHandle<JSPropertyDescriptor> desc)

View File

@@ -16,7 +16,6 @@ namespace xpc {
class WaiveXrayWrapper : public js::CrossCompartmentWrapper { class WaiveXrayWrapper : public js::CrossCompartmentWrapper {
public: public:
WaiveXrayWrapper(unsigned flags); WaiveXrayWrapper(unsigned flags);
virtual ~WaiveXrayWrapper();
virtual bool getPropertyDescriptor(JSContext *cx, JS::Handle<JSObject*> wrapper, virtual bool getPropertyDescriptor(JSContext *cx, JS::Handle<JSObject*> wrapper,
JS::Handle<jsid> id, JS::Handle<jsid> id,

View File

@@ -2250,11 +2250,6 @@ XrayWrapper<Base, Traits>::XrayWrapper(unsigned flags)
{ {
} }
template <typename Base, typename Traits>
XrayWrapper<Base, Traits>::~XrayWrapper()
{
}
namespace XrayUtils { namespace XrayUtils {
JSObject * JSObject *

View File

@@ -68,7 +68,6 @@ template <typename Base, typename Traits = XPCWrappedNativeXrayTraits >
class XrayWrapper : public Base { class XrayWrapper : public Base {
public: public:
XrayWrapper(unsigned flags); XrayWrapper(unsigned flags);
virtual ~XrayWrapper();
/* Fundamental proxy traps. */ /* Fundamental proxy traps. */
virtual bool isExtensible(JSContext *cx, JS::Handle<JSObject*> wrapper, bool *extensible) const MOZ_OVERRIDE; virtual bool isExtensible(JSContext *cx, JS::Handle<JSObject*> wrapper, bool *extensible) const MOZ_OVERRIDE;