Commit f9ec65e5 authored by Alexander.Trofimov's avatar Alexander.Trofimov

delete unused

setCanLicense, asc_getCanLicense, canLicense
parent c802188c
......@@ -38,7 +38,6 @@ AscCommon.baseEditorsApi.prototype._onEndPermissions = function()
{
var oResult = new AscCommon.asc_CAscEditorPermissions();
oResult.setLicenseType(Asc.c_oLicenseResult.Success);
oResult.setCanLicense(true);
oResult.setCanBranding(true);
this.sendEvent('asc_onGetEditorPermissions', oResult);
}
......
......@@ -38,7 +38,6 @@ AscCommon.baseEditorsApi.prototype._onEndPermissions = function () {
if (null !== this.licenseResult) {
var type = this.licenseResult['type'];
oResult.setLicenseType(type);
oResult.setCanLicense(Asc.c_oLicenseResult.Success === type);
oResult.setCanBranding(Asc.c_oLicenseResult.Error !== type); // Для тех, у кого есть лицензия, branding доступен
oResult.setIsLight(this.licenseResult['light']);
}
......
......@@ -120,7 +120,6 @@
*/
function asc_CAscEditorPermissions() {
this.licenseType = c_oLicenseResult.Error;
this.canLicense = false;
this.isLight = false;
this.canCoAuthoring = true;
this.canReaderMode = true;
......@@ -134,9 +133,6 @@
asc_CAscEditorPermissions.prototype.asc_getLicenseType = function () {
return this.licenseType;
};
asc_CAscEditorPermissions.prototype.asc_getCanLicense = function () {
return this.canLicense;
};
asc_CAscEditorPermissions.prototype.asc_getCanCoAuthoring = function () {
return this.canCoAuthoring;
};
......@@ -162,9 +158,6 @@
asc_CAscEditorPermissions.prototype.setLicenseType = function (v) {
this.licenseType = v;
};
asc_CAscEditorPermissions.prototype.setCanLicense = function (v) {
this.canLicense = v;
};
asc_CAscEditorPermissions.prototype.setCanBranding = function (v) {
this.canBranding = v;
};
......@@ -2685,7 +2678,6 @@
window["AscCommon"].asc_CAscEditorPermissions = asc_CAscEditorPermissions;
prot = asc_CAscEditorPermissions.prototype;
prot["asc_getLicenseType"] = prot.asc_getLicenseType;
prot["asc_getCanLicense"] = prot.asc_getCanLicense;
prot["asc_getCanCoAuthoring"] = prot.asc_getCanCoAuthoring;
prot["asc_getCanReaderMode"] = prot.asc_getCanReaderMode;
prot["asc_getCanBranding"] = prot.asc_getCanBranding;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment