Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
K0R0L committed Sep 1, 2023
1 parent 9fa3ed7 commit bd5b8eb
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions common/Native/native.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,43 +341,3 @@ var performance = window.performance = (function(){
now : function() { return Date.now() - basePerformanceOffset; }
};
})();

(function(window, undefined){
function ZLib()
{
/** @suppress {checkVars} */
this.engine = CreateNativeZip();
this.files = {};
}
ZLib.prototype.isModuleInit = true;
ZLib.prototype.open = function(buf)
{
return this.engine.open((undefined !== buf.byteLength) ? new Uint8Array(buf) : buf);
};
ZLib.prototype.create = function()
{
return this.engine.create();
};
ZLib.prototype.save = function()
{
return this.engine.save();
};
ZLib.prototype.getFile = function(path)
{
return this.engine.getFile(path);
};
ZLib.prototype.addFile = function(path, data)
{
return this.engine.addFile(path, (undefined !== data.byteLength) ? new Uint8Array(data) : data);
};
ZLib.prototype.removeFile = function(path)
{
return this.engine.removeFile(path);
};
ZLib.prototype.close = function()
{
return this.engine.close();
};

window.nativeZlibEngine = new ZLib();
})(window, undefined);

0 comments on commit bd5b8eb

Please sign in to comment.