aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/google/safehtml/template/init.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-01-22 16:07:17 +0100
committerTaras Madan <tarasmadan@google.com>2025-01-23 10:42:36 +0000
commit7b4377ad9d8a7205416df8d6217ef2b010f89481 (patch)
treee6fec4fd12ff807a16d847923f501075bf71d16c /vendor/github.com/google/safehtml/template/init.go
parent475a4c203afb8b7d3af51c4fd32bb170ff32a45e (diff)
vendor: delete
Diffstat (limited to 'vendor/github.com/google/safehtml/template/init.go')
-rw-r--r--vendor/github.com/google/safehtml/template/init.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/vendor/github.com/google/safehtml/template/init.go b/vendor/github.com/google/safehtml/template/init.go
deleted file mode 100644
index c9fa2de1d..000000000
--- a/vendor/github.com/google/safehtml/template/init.go
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) 2017 The Go Authors. All rights reserved.
-//
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file or at
-// https://developers.google.com/open-source/licenses/bsd
-
-package template
-
-import (
- "github.com/google/safehtml/internal/template/raw"
-)
-
-// The following functions are used by package uncheckedconversions
-// (via package raw) to create TrustedSource and TrustedTemplate values
-// from plain strings.
-
-func trustedSourceRaw(s string) TrustedSource {
- return TrustedSource{s}
-}
-
-func trustedTemplateRaw(s string) TrustedTemplate {
- return TrustedTemplate{s}
-}
-
-func init() {
- raw.TrustedSource = trustedSourceRaw
- raw.TrustedTemplate = trustedTemplateRaw
-}