mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Remove unused code
This commit is contained in:
parent
3669fdc752
commit
07fd143853
12
README.md
12
README.md
|
@ -61,21 +61,21 @@ Things might work in Edge 15-18, Firefox 47-62 and Chrome 54-68 due to one polyf
|
|||
|
||||
|js/* |1.14.0 |native |
|
||||
|----------- |--------: |--------: |
|
||||
|admin.js |2.130.942 |1.356.246 |
|
||||
|app.js |4.184.455 |3.117.728 |
|
||||
|admin.js |2.130.942 |1.355.195 |
|
||||
|app.js |4.184.455 |3.116.673 |
|
||||
|boot.js | 671.522 | 109.651 |
|
||||
|libs.js | 647.614 | 508.324 |
|
||||
|polyfills.js | 325.834 | 0 |
|
||||
|TOTAL js |7.960.367 |5.091.949 |
|
||||
|TOTAL js |7.960.367 |5.089.843 |
|
||||
|
||||
|js/min/* |1.14.0 |native |
|
||||
|--------------- |--------: |--------: |
|
||||
|admin.min.js | 252.147 | 176.702 |
|
||||
|app.min.js | 511.202 | 408.359 |
|
||||
|admin.min.js | 252.147 | 176.512 |
|
||||
|app.min.js | 511.202 | 408.169 |
|
||||
|boot.min.js | 66.007 | 13.380 |
|
||||
|libs.min.js | 572.545 | 465.247 |
|
||||
|polyfills.min.js | 32.452 | 0 |
|
||||
|TOTAL js/min |1.434.353 |1.063.688 |
|
||||
|TOTAL js/min |1.434.353 |1.063.308 |
|
||||
|
||||
370.665 bytes is not much, but it feels faster.
|
||||
|
||||
|
|
|
@ -44,9 +44,6 @@ class AbstractAjaxRemote {
|
|||
|
||||
if (StorageResultType.Success === sType && oData && !oData.Result) {
|
||||
const err = oData ? oData.ErrorCode : null;
|
||||
if (err) {
|
||||
window.console.log('AbstractAjaxRemote ' + sRequestAction + ' request failed:', err, Notification.getKeyByValue(err));
|
||||
}
|
||||
if (
|
||||
oData && [
|
||||
Notification.AuthError,
|
||||
|
@ -199,7 +196,6 @@ if (err) {
|
|||
|
||||
this.defaultResponse(fResultCallback, action, sType, oData, cached, params);
|
||||
}).catch(err => {
|
||||
window.console.log('AbstractAjaxRemote ' + action + ' request failed:', err, Notification.getKeyByValue(err));
|
||||
if (err.name == 'AbortError') { // handle abort()
|
||||
return Promise.reject(Notification.AjaxAbort);
|
||||
}
|
||||
|
|
|
@ -18,10 +18,6 @@ class Utils
|
|||
|
||||
static $RsaKey = null;
|
||||
|
||||
function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
static public function PgpVerifyFile(string $sFileName, string $sSignature) : bool
|
||||
{
|
||||
$sKeyFile = APP_VERSION_ROOT_PATH.'app/resources/RainLoop.asc';
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
<?php
|
||||
|
||||
if (!defined('APP_VERSION'))
|
||||
{
|
||||
define('APP_VERSION', '0.0.0');
|
||||
define('APP_INDEX_ROOT_FILE', __FILE__);
|
||||
define('APP_INDEX_ROOT_PATH', str_replace('\\', '/', rtrim(dirname(__FILE__), '\\/').'/'));
|
||||
}
|
||||
|
||||
if (file_exists(APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/index.php'))
|
||||
{
|
||||
return include APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/index.php';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '[105] Missing version directory';
|
||||
exit(105);
|
||||
}
|
Loading…
Reference in a new issue