Remove RenderedTarget.setSay + its test

This commit is contained in:
adroitwhiz 2020-05-18 01:35:32 -04:00
parent 1ba3181a9d
commit 05dcbc176f
2 changed files with 0 additions and 29 deletions

View file

@ -1,4 +1,3 @@
const log = require('../util/log');
const MathUtil = require('../util/math-util');
const StringUtil = require('../util/string-util');
const Cast = require('../util/cast');
@ -341,23 +340,6 @@ class RenderedTarget extends Target {
this.runtime.requestTargetsUpdate(this);
}
/**
* Set a say bubble.
* @param {?string} type Type of say bubble: "say", "think", or null.
* @param {?string} message Message to put in say bubble.
*/
setSay (type, message) {
if (this.isStage) {
return;
}
// @todo: Render to stage.
if (!type || !message) {
log.info('Clearing say bubble');
return;
}
log.info('Setting say bubble:', type, message);
}
/**
* Set visibility; i.e., whether it's shown or hidden.
* @param {!boolean} visible True if should be shown.

View file

@ -56,17 +56,6 @@ test('direction', t => {
t.end();
});
test('setSay', t => {
const r = new Runtime();
const s = new Sprite(null, r);
const a = new RenderedTarget(s, r);
const renderer = new FakeRenderer();
a.renderer = renderer;
a.setSay();
a.setSay('types not specified', 'message');
t.end();
});
test('setVisible', t => {
const r = new Runtime();
const s = new Sprite(null, r);