Remove use of goog.crypt

This commit is contained in:
Andreas Hocevar
2016-08-28 13:05:27 +02:00
parent 5bb887d3ce
commit 367f0923c5

View File

@@ -1,7 +1,5 @@
goog.provide('ol.style.Stroke');
goog.require('goog.crypt');
goog.require('goog.crypt.Md5');
goog.require('ol.color');
@@ -207,7 +205,7 @@ ol.style.Stroke.prototype.setWidth = function(width) {
*/
ol.style.Stroke.prototype.getChecksum = function() {
if (this.checksum_ === undefined) {
var raw = 's' +
this.checksum_ = 's' +
(this.color_ ?
ol.color.asString(this.color_) : '-') + ',' +
(this.lineCap_ !== undefined ?
@@ -220,10 +218,6 @@ ol.style.Stroke.prototype.getChecksum = function() {
this.miterLimit_.toString() : '-') + ',' +
(this.width_ !== undefined ?
this.width_.toString() : '-');
var md5 = new goog.crypt.Md5();
md5.update(raw);
this.checksum_ = goog.crypt.byteArrayToString(md5.digest());
}
return this.checksum_;