mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Remove unused code
This commit is contained in:
parent
3669fdc752
commit
07fd143853
5 changed files with 9 additions and 35 deletions
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 |
|
|js/* |1.14.0 |native |
|
||||||
|----------- |--------: |--------: |
|
|----------- |--------: |--------: |
|
||||||
|admin.js |2.130.942 |1.356.246 |
|
|admin.js |2.130.942 |1.355.195 |
|
||||||
|app.js |4.184.455 |3.117.728 |
|
|app.js |4.184.455 |3.116.673 |
|
||||||
|boot.js | 671.522 | 109.651 |
|
|boot.js | 671.522 | 109.651 |
|
||||||
|libs.js | 647.614 | 508.324 |
|
|libs.js | 647.614 | 508.324 |
|
||||||
|polyfills.js | 325.834 | 0 |
|
|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 |
|
|js/min/* |1.14.0 |native |
|
||||||
|--------------- |--------: |--------: |
|
|--------------- |--------: |--------: |
|
||||||
|admin.min.js | 252.147 | 176.702 |
|
|admin.min.js | 252.147 | 176.512 |
|
||||||
|app.min.js | 511.202 | 408.359 |
|
|app.min.js | 511.202 | 408.169 |
|
||||||
|boot.min.js | 66.007 | 13.380 |
|
|boot.min.js | 66.007 | 13.380 |
|
||||||
|libs.min.js | 572.545 | 465.247 |
|
|libs.min.js | 572.545 | 465.247 |
|
||||||
|polyfills.min.js | 32.452 | 0 |
|
|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.
|
370.665 bytes is not much, but it feels faster.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,6 @@ class AbstractAjaxRemote {
|
||||||
|
|
||||||
if (StorageResultType.Success === sType && oData && !oData.Result) {
|
if (StorageResultType.Success === sType && oData && !oData.Result) {
|
||||||
const err = oData ? oData.ErrorCode : null;
|
const err = oData ? oData.ErrorCode : null;
|
||||||
if (err) {
|
|
||||||
window.console.log('AbstractAjaxRemote ' + sRequestAction + ' request failed:', err, Notification.getKeyByValue(err));
|
|
||||||
}
|
|
||||||
if (
|
if (
|
||||||
oData && [
|
oData && [
|
||||||
Notification.AuthError,
|
Notification.AuthError,
|
||||||
|
|
@ -199,7 +196,6 @@ if (err) {
|
||||||
|
|
||||||
this.defaultResponse(fResultCallback, action, sType, oData, cached, params);
|
this.defaultResponse(fResultCallback, action, sType, oData, cached, params);
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
window.console.log('AbstractAjaxRemote ' + action + ' request failed:', err, Notification.getKeyByValue(err));
|
|
||||||
if (err.name == 'AbortError') { // handle abort()
|
if (err.name == 'AbortError') { // handle abort()
|
||||||
return Promise.reject(Notification.AjaxAbort);
|
return Promise.reject(Notification.AjaxAbort);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,6 @@ class Utils
|
||||||
|
|
||||||
static $RsaKey = null;
|
static $RsaKey = null;
|
||||||
|
|
||||||
function __construct()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static public function PgpVerifyFile(string $sFileName, string $sSignature) : bool
|
static public function PgpVerifyFile(string $sFileName, string $sSignature) : bool
|
||||||
{
|
{
|
||||||
$sKeyFile = APP_VERSION_ROOT_PATH.'app/resources/RainLoop.asc';
|
$sKeyFile = APP_VERSION_ROOT_PATH.'app/resources/RainLoop.asc';
|
||||||
|
|
|
||||||
|
|
@ -121,9 +121,9 @@ class ICSExportPlugin extends DAV\ServerPlugin {
|
||||||
case 'VTIMEZONE' :
|
case 'VTIMEZONE' :
|
||||||
// Naively just checking tzid.
|
// Naively just checking tzid.
|
||||||
if (!in_array((string)$child->TZID, $collectedTimezones)) {
|
if (!in_array((string)$child->TZID, $collectedTimezones)) {
|
||||||
$timezones[] = $child;
|
$timezones[] = $child;
|
||||||
$collectedTimezones[] = $child->TZID;
|
$collectedTimezones[] = $child->TZID;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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…
Add table
Add a link
Reference in a new issue