Remove After editing... run "go generate" lines

This commit is contained in:
Nigel Tao committed 2021-08-22 12:57:39 +10:00
1 parent bdfee5053c
commit 1d19157668
31 files changed
-68

No files matched your search

-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2020 The Wuffs Authors. // Copyright 2020 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2020 The Wuffs Authors. // Copyright 2020 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2020 The Wuffs Authors. // Copyright 2020 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2020 The Wuffs Authors. // Copyright 2020 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2021 The Wuffs Authors. // Copyright 2021 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2021 The Wuffs Authors. // Copyright 2021 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2020 The Wuffs Authors. // Copyright 2020 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2020 The Wuffs Authors. // Copyright 2020 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2017 The Wuffs Authors. // Copyright 2017 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2020 The Wuffs Authors. // Copyright 2020 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2020 The Wuffs Authors. // Copyright 2020 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2017 The Wuffs Authors. // Copyright 2017 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2017 The Wuffs Authors. // Copyright 2017 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2017 The Wuffs Authors. // Copyright 2017 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2017 The Wuffs Authors. // Copyright 2017 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2020 The Wuffs Authors. // Copyright 2020 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2017 The Wuffs Authors. // Copyright 2017 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2017 The Wuffs Authors. // Copyright 2017 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2021 The Wuffs Authors. // Copyright 2021 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2017 The Wuffs Authors. // Copyright 2017 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2017 The Wuffs Authors. // Copyright 2017 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2017 The Wuffs Authors. // Copyright 2017 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2017 The Wuffs Authors. // Copyright 2017 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2017 The Wuffs Authors. // Copyright 2017 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2020 The Wuffs Authors. // Copyright 2020 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2020 The Wuffs Authors. // Copyright 2020 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2020 The Wuffs Authors. // Copyright 2020 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2020 The Wuffs Authors. // Copyright 2020 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-2
View File
@@ -1,5 +1,3 @@
// After editing this file, run "go generate" in the ../data directory.
// Copyright 2020 The Wuffs Authors. // Copyright 2020 The Wuffs Authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
-5
View File
@@ -355,11 +355,6 @@ func insertBaseAllPublicH(buf *buffer) error {
func insertBaseCopyright(buf *buffer) error { func insertBaseCopyright(buf *buffer) error {
s := string(embedBaseAllImplC) s := string(embedBaseAllImplC)
if strings.HasPrefix(s, "// After editing ") {
if i := strings.Index(s, "\n\n"); i >= 0 {
s = s[i+2:]
}
}
if i := strings.Index(s, "\n\n"); i >= 0 { if i := strings.Index(s, "\n\n"); i >= 0 {
buf.writes(s[:i+1]) buf.writes(s[:i+1])
} }
-5
View File
@@ -26,11 +26,6 @@ type EmbeddedString string
// Trim removes the leading "Copyright etc" boilerplate. // Trim removes the leading "Copyright etc" boilerplate.
func (e EmbeddedString) Trim() string { func (e EmbeddedString) Trim() string {
s := string(e) s := string(e)
if strings.HasPrefix(s, "// After editing ") {
if i := strings.Index(s, "\n\n"); i >= 0 {
s = s[i+2:]
}
}
if strings.HasPrefix(s, "// Copyright ") { if strings.HasPrefix(s, "// Copyright ") {
if i := strings.Index(s, "\n\n"); i >= 0 { if i := strings.Index(s, "\n\n"); i >= 0 {
s = s[i+2:] s = s[i+2:]