Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1943 from erikvold/1158356
Browse files Browse the repository at this point in the history
Bug 1158356 Remove sdk/deprecated/symbiont r=jsantell
  • Loading branch information
erikvold committed Apr 24, 2015
2 parents 5c456c8 + f4e6c63 commit e0727ab
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 1,375 deletions.
2 changes: 1 addition & 1 deletion lib/sdk/content/content-worker.js
Expand Up @@ -110,7 +110,7 @@ Object.freeze({
injectTimers: function injectTimers(exports, chromeAPI, pipe, console) {
// wrapped functions from `'timer'` module.
// Wrapper adds `try catch` blocks to the callbacks in order to
// emit `error` event on a symbiont if exception is thrown in
// emit `error` event if exception is thrown in
// the Worker global scope.
// @see http://www.w3.org/TR/workers/#workerutils

Expand Down
12 changes: 2 additions & 10 deletions lib/sdk/content/content.js
Expand Up @@ -9,22 +9,14 @@ module.metadata = {

const { deprecateUsage } = require('../util/deprecate');

Object.defineProperty(exports, "Loader", {
Object.defineProperty(exports, "Loader", {
get: function() {
deprecateUsage('`sdk/content/content` is deprecated. Please use `sdk/content/loader` directly.');
return require('./loader').Loader;
}
});

Object.defineProperty(exports, "Symbiont", {
get: function() {
deprecateUsage('Both `sdk/content/content` and `sdk/deprecated/symbiont` are deprecated. ' +
'`sdk/core/heritage` supersedes Symbiont for inheritance.');
return require('../deprecated/symbiont').Symbiont;
}
});

Object.defineProperty(exports, "Worker", {
Object.defineProperty(exports, "Worker", {
get: function() {
deprecateUsage('`sdk/content/content` is deprecated. Please use `sdk/content/worker` directly.');
return require('./worker').Worker;
Expand Down
115 changes: 0 additions & 115 deletions lib/sdk/deprecated/cortex.js

This file was deleted.

228 changes: 0 additions & 228 deletions lib/sdk/deprecated/symbiont.js

This file was deleted.

2 changes: 1 addition & 1 deletion lib/sdk/deprecated/sync-worker.js
Expand Up @@ -90,7 +90,7 @@ const Worker = Class({
* argument, which represents data to be sent to the worker. The data may
* be any primitive type value or `JSON`. Call of this method asynchronously
* emits `message` event with data value in the global scope of this
* symbiont.
* worker.
*
* `message` event listeners can be set either by calling
* `self.on` with a first argument string `"message"` or by
Expand Down

0 comments on commit e0727ab

Please sign in to comment.