Skip to content

Commit 983cbb2

Browse files
Remove librejs header in <head> (#12439)
For the sake of performance and simplicity, remove this seemingly useless license header. It's related to LibreJS which we already pretty much killed of in an earlier commit [1]. Initially added in [2]. Note that the StaticUrlPrefix here was never actually correctly resolved and has rendered including the template fences. [1] #11810 [2] a915a09 Co-authored-by: techknowlogick <[email protected]>
1 parent e5c5080 commit 983cbb2

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

templates/base/head.tmpl

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -25,39 +25,6 @@
2525
<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">
2626
<meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}">
2727
{{end}}
28-
<script>
29-
{{SafeJS `/*
30-
@licstart The following is the entire license notice for the
31-
JavaScript code in this page.
32-
33-
Copyright (c) 2016 The Gitea Authors
34-
Copyright (c) 2015 The Gogs Authors
35-
36-
Permission is hereby granted, free of charge, to any person obtaining a copy
37-
of this software and associated documentation files (the "Software"), to deal
38-
in the Software without restriction, including without limitation the rights
39-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
40-
copies of the Software, and to permit persons to whom the Software is
41-
furnished to do so, subject to the following conditions:
42-
43-
The above copyright notice and this permission notice shall be included in
44-
all copies or substantial portions of the Software.
45-
46-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
47-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
48-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
49-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
50-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
51-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
52-
THE SOFTWARE.
53-
---
54-
Licensing information for additional javascript libraries can be found at:
55-
{{StaticUrlPrefix}}/js/licenses.txt
56-
57-
@licend The above is the entire license notice
58-
for the JavaScript code in this page.
59-
*/`}}
60-
</script>
6128
<script>
6229
window.config = {
6330
AppVer: '{{AppVer}}',

0 commit comments

Comments
 (0)