Bug 1288423 - Remove the old Actor/FrontClass constructors. r=fitzgen
This commit is contained in:
@@ -29,8 +29,7 @@ const {Cu} = require("chrome");
|
|||||||
const promise = require("promise");
|
const promise = require("promise");
|
||||||
const {Task} = require("devtools/shared/task");
|
const {Task} = require("devtools/shared/task");
|
||||||
const protocol = require("devtools/shared/protocol");
|
const protocol = require("devtools/shared/protocol");
|
||||||
const {ActorClass, Actor, FrontClass, Front,
|
const {Actor, ActorClassWithSpec} = protocol;
|
||||||
Arg, method, RetVal, types} = protocol;
|
|
||||||
const {animationPlayerSpec, animationsSpec} = require("devtools/shared/specs/animation");
|
const {animationPlayerSpec, animationsSpec} = require("devtools/shared/specs/animation");
|
||||||
const events = require("sdk/event/core");
|
const events = require("sdk/event/core");
|
||||||
|
|
||||||
|
|||||||
@@ -1090,17 +1090,6 @@ var generateRequestHandlers = function (actorSpec, actorProto) {
|
|||||||
return actorProto;
|
return actorProto;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Create an actor class for the given actor prototype.
|
|
||||||
*
|
|
||||||
* @param object actorProto
|
|
||||||
* The actor prototype. Must have a 'typeName' property,
|
|
||||||
* should have method definitions, can have event definitions.
|
|
||||||
*/
|
|
||||||
exports.ActorClass = function (actorProto) {
|
|
||||||
return ActorClassWithSpec(generateActorSpec(actorProto), actorProto);
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an actor class for the given actor specification and prototype.
|
* Create an actor class for the given actor specification and prototype.
|
||||||
*
|
*
|
||||||
@@ -1422,19 +1411,6 @@ var generateRequestMethods = function (actorSpec, frontProto) {
|
|||||||
return frontProto;
|
return frontProto;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a front class for the given actor class and front prototype.
|
|
||||||
*
|
|
||||||
* @param ActorClass actorType
|
|
||||||
* The actor class you're creating a front for.
|
|
||||||
* @param object frontProto
|
|
||||||
* The front prototype. Must have a 'typeName' property,
|
|
||||||
* should have method definitions, can have event definitions.
|
|
||||||
*/
|
|
||||||
exports.FrontClass = function (actorType, frontProto) {
|
|
||||||
return FrontClassWithSpec(prototypeOf(actorType)._actorSpec, frontProto);
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a front class for the given actor specification and front prototype.
|
* Create a front class for the given actor specification and front prototype.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user