Merge pull request #5888 from fredj/rm_unused

Remove unused functions
This commit is contained in:
Frédéric Junod
2016-09-20 08:33:12 +02:00
committed by GitHub
4 changed files with 0 additions and 61 deletions
-12
View File
@@ -189,18 +189,6 @@ ol.color.fromStringInternal_ = function(s) {
};
/**
* @param {ol.Color} color Color.
* @return {boolean} Is valid.
*/
ol.color.isValid = function(color) {
return 0 <= color[0] && color[0] < 256 &&
0 <= color[1] && color[1] < 256 &&
0 <= color[2] && color[2] < 256 &&
0 <= color[3] && color[3] <= 1;
};
/**
* @param {ol.Color} color Color.
* @param {ol.Color=} opt_color Color.
-17
View File
@@ -1,22 +1,5 @@
goog.provide('ol.tilecoord');
goog.require('ol');
/**
* @param {string} str String that follows pattern “z/x/y” where x, y and z are
* numbers.
* @return {ol.TileCoord} Tile coord.
*/
ol.tilecoord.createFromString = function(str) {
var v = str.split('/');
ol.DEBUG && console.assert(v.length === 3,
'must provide a string in "z/x/y" format, got "%s"', str);
return v.map(function(e) {
return parseInt(e, 10);
});
};
/**
* @param {number} z Z.