|
16 | 16 | * *
|
17 | 17 | * Contact: info@sempare.ltd *
|
18 | 18 | * *
|
19 |
| - * Licensed under the GPL Version 3.0 or the Sempare Commercial License * |
| 19 | + * Licensed under the Apache Version 2.0 or the Sempare Commercial License * |
20 | 20 | * You may not use this file except in compliance with one of these Licenses. *
|
21 | 21 | * You may obtain a copy of the Licenses at *
|
22 | 22 | * *
|
23 |
| - * https://www.gnu.org/licenses/gpl-3.0.en.html * |
| 23 | + * https://www.apache.org/licenses/LICENSE-2.0 * |
24 | 24 | * https://github.com/sempare/sempare-delphi-template-engine/blob/master/docs/commercial.license.md *
|
25 | 25 | * *
|
26 | 26 | * Unless required by applicable law or agreed to in writing, software *
|
@@ -440,29 +440,7 @@ class procedure Template.EvalWithContext(const AContext: ITemplateContext; const
|
440 | 440 | LTemplateVisitor: IEvaluationTemplateVisitor;
|
441 | 441 | LResolveContext: TTemplateValue;
|
442 | 442 | LValue: TTemplateValue;
|
443 |
| -{$IFNDEF SEMPARE_TEMPLATE_CONFIRM_LICENSE} |
444 |
| - LConfirmLicense: TStringStream; |
445 |
| -{$ENDIF} |
446 | 443 | begin
|
447 |
| -{$IFDEF RELEASE} |
448 |
| - {$IFNDEF SEMPARE_TEMPLATE_CONFIRM_LICENSE } |
449 |
| - {$MESSAGE FATAL 'The SEMPARE_TEMPLATE_CONFIRM_LICENSE define must be set in RELEASE mode.'} |
450 |
| - {$ENDIF} |
451 |
| -{$ENDIF} |
452 |
| -{$IFNDEF SEMPARE_TEMPLATE_CONFIRM_LICENSE} |
453 |
| - LConfirmLicense := TStringStream.Create('Thank you for trying the Sempare Template Engine.'#13#10#13#10 + // |
454 |
| - 'To supress this message, set the conditional define SEMPARE_TEMPLATE_CONFIRM_LICENSE in the project options.'#13#10#13#10#13#10 + // |
455 |
| - 'Please remember the library is dual licensed. This is open source - Free as in speech, not Free as in beer. You are free to use it under conditions of the GPL or you can support the project with a commercial license to keep it alive as per:'#13#10#13#10#13#10 + // |
456 |
| - 'https://github.com/sempare/sempare-delphi-template-engine/blob/main/docs/commercial.license.md'#13#10#13#10#13#10 + // |
457 |
| - 'NOTE: Downloading the Sempare Template Engine through GetIt does not mean you are exempt of licensing for commercial use.'#13#10#13#10#13#10 // |
458 |
| - ); |
459 |
| - try |
460 |
| - LConfirmLicense.Position := 0; |
461 |
| - AStream.CopyFrom(LConfirmLicense, LConfirmLicense.Size); |
462 |
| - finally |
463 |
| - LConfirmLicense.Free; |
464 |
| - end; |
465 |
| -{$ENDIF} |
466 | 444 | LResolveContext := AResolveContext;
|
467 | 445 | if LResolveContext.IsType<TTemplateValue> then
|
468 | 446 | LResolveContext := LResolveContext.AsType<TTemplateValue>;
|
|
0 commit comments