diff --git a/devtools/server/actors/animation.js b/devtools/server/actors/animation.js index 399283c04c39..4be8e71310a3 100644 --- a/devtools/server/actors/animation.js +++ b/devtools/server/actors/animation.js @@ -29,8 +29,7 @@ const {Cu} = require("chrome"); const promise = require("promise"); const {Task} = require("devtools/shared/task"); const protocol = require("devtools/shared/protocol"); -const {ActorClass, Actor, FrontClass, Front, - Arg, method, RetVal, types} = protocol; +const {Actor, ActorClassWithSpec} = protocol; const {animationPlayerSpec, animationsSpec} = require("devtools/shared/specs/animation"); const events = require("sdk/event/core"); diff --git a/devtools/shared/protocol.js b/devtools/shared/protocol.js index b973a6119dd5..ac04788b9e07 100644 --- a/devtools/shared/protocol.js +++ b/devtools/shared/protocol.js @@ -1090,17 +1090,6 @@ var generateRequestHandlers = function (actorSpec, 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. * @@ -1422,19 +1411,6 @@ var generateRequestMethods = function (actorSpec, 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. *