9
9
* CodeSnip format and adds them to the database.
10
10
}
11
11
12
- // TODO -cDatabase: check BSD3URI const has valid license info
13
12
14
13
unit SWAG.UImporter;
15
14
@@ -161,27 +160,20 @@ function TSWAGImporter.ExtraBoilerplate: IActiveText;
161
160
sStatementPrefix = ' This snippet was imported from the ' ;
162
161
sStatementLinkText = ' SWAG Pascal Archive' ;
163
162
sStatementPostfix = ' . ' ;
164
- sLicensePrefix = ' Unless stated otherwise this snippet is licensed under '
165
- + ' the ' ;
166
- sLicenseLinkText = ' BSD 3-Clause License' ;
167
- sLicensePostfix = ' .' ;
168
- const
169
- // URLs of web pages referenced from links in boilerplate
163
+ sLicense = ' The code snippets in the archive pages are generally freeware or '
164
+ + ' public domain as defined by any accompanying comments and copyright '
165
+ + ' statements. Contact the author if in doubt.' ;
166
+ // URL of web page referenced from links in boilerplate
170
167
SWAGDBURI = ' https://github.com/delphidabbler/swag' ;
171
- BSD3URI = ' http://opensource.org/licenses/BSD-3-Clause' ;
172
168
var
173
- // Active text attributes for links included in boilerplate
169
+ // Active text attributes for link included in boilerplate
174
170
SWAGDBURIAttr: IActiveTextAttrs;
175
- BSD3URIAttr: IActiveTextAttrs;
176
171
begin
177
172
if not Assigned(fExtraBoilerplate) then
178
173
begin
179
174
SWAGDBURIAttr := TActiveTextFactory.CreateAttrs(
180
175
TActiveTextAttr.Create(' href' , SWAGDBURI)
181
176
);
182
- BSD3URIAttr := TActiveTextFactory.CreateAttrs(
183
- TActiveTextAttr.Create(' href' , BSD3URI)
184
- );
185
177
fExtraBoilerplate := TActiveTextFactory.CreateActiveText;
186
178
fExtraBoilerplate.AddElem(
187
179
TActiveTextFactory.CreateActionElem(ekPara, fsOpen)
@@ -202,19 +194,7 @@ function TSWAGImporter.ExtraBoilerplate: IActiveText;
202
194
TActiveTextFactory.CreateTextElem(sStatementPostfix)
203
195
);
204
196
fExtraBoilerplate.AddElem(
205
- TActiveTextFactory.CreateTextElem(sLicensePrefix)
206
- );
207
- fExtraBoilerplate.AddElem(
208
- TActiveTextFactory.CreateActionElem(ekLink, BSD3URIAttr, fsOpen)
209
- );
210
- fExtraBoilerplate.AddElem(
211
- TActiveTextFactory.CreateTextElem(sLicenseLinkText)
212
- );
213
- fExtraBoilerplate.AddElem(
214
- TActiveTextFactory.CreateActionElem(ekLink, BSD3URIAttr, fsClose)
215
- );
216
- fExtraBoilerplate.AddElem(
217
- TActiveTextFactory.CreateTextElem(sLicensePostfix)
197
+ TActiveTextFactory.CreateTextElem(sLicense)
218
198
);
219
199
fExtraBoilerplate.AddElem(
220
200
TActiveTextFactory.CreateActionElem(ekPara, fsClose)
0 commit comments