Remove check for same theme when refreshing (#3672)

* Remove check for same theme when refreshing
This commit is contained in:
alschmiedt
2020-01-30 16:05:24 -08:00
committed by GitHub
parent 97d0001512
commit 88ad660c51
2 changed files with 0 additions and 7 deletions

View File

@@ -51,14 +51,12 @@ Blockly.Theme = function(name, blockStyles, categoryStyles,
/**
* The block styles map.
* @type {!Object.<string, !Blockly.Theme.BlockStyle>}
* @package
*/
this.blockStyles = blockStyles;
/**
* The category styles map.
* @type {!Object.<string, Blockly.Theme.CategoryStyle>}
* @package
*/
this.categoryStyles = categoryStyles;

View File

@@ -90,11 +90,6 @@ Blockly.ThemeManager.prototype.getTheme = function() {
* @package
*/
Blockly.ThemeManager.prototype.setTheme = function(theme) {
if (this.theme_ === theme) {
// No change.
return;
}
var prevTheme = this.theme_;
this.theme_ = theme;