Repository: Ralith/hecs
Pull request #395 (2025-03-25 01:41:11)

Remove Google boilerplate
Google has disclaimed ownership of hecs copyright, so we can tidy up.


Patch:
diff --git a/README.md b/README.md
index e96c222..be1ab94 100644
--- a/README.md
+++ b/README.md
@@ -112,11 +112,6 @@ submitted for inclusion in the work by you, as defined in the
 Apache-2.0 license, shall be dual licensed as above, without any
 additional terms or conditions.
 
-### Disclaimer
-
-This is not an official Google product (experimental or otherwise), it is just
-code that happens to be owned by Google.
-
 [bevy]: https://github.com/bevyengine/bevy
 [specs]: https://github.com/amethyst/specs
 [legion]: https://github.com/TomGillen/legion
diff --git a/benches/bench.rs b/benches/bench.rs
index 1029db3..369ae2c 100644
--- a/benches/bench.rs
+++ b/benches/bench.rs
@@ -1,10 +1,3 @@
-// Copyright 2019 Google LLC
-//
-// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
-// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
-// http://opensource.org/licenses/MIT>, at your option. This file may not be
-// copied, modified, or distributed except according to those terms.
-
 use bencher::{benchmark_group, benchmark_main, Bencher};
 use hecs::*;
 
diff --git a/macros/src/lib.rs b/macros/src/lib.rs
index 634054b..372fd5f 100644
--- a/macros/src/lib.rs
+++ b/macros/src/lib.rs
@@ -1,10 +1,3 @@
-// Copyright 2019 Google LLC
-//
-// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
-// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
-// http://opensource.org/licenses/MIT>, at your option. This file may not be
-// copied, modified, or distributed except according to those terms.
-
 extern crate proc_macro;
 
 mod bundle;
diff --git a/src/archetype.rs b/src/archetype.rs
index cc66b44..f5a7397 100644
--- a/src/archetype.rs
+++ b/src/archetype.rs
@@ -1,10 +1,3 @@
-// Copyright 2019 Google LLC
-//
-// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
-// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
-// http://opensource.org/licenses/MIT>, at your option. This file may not be
-// copied, modified, or distributed except according to those terms.
-
 use crate::alloc::alloc::{alloc, dealloc, Layout};
 use crate::alloc::boxed::Box;
 use crate::alloc::{vec, vec::Vec};
diff --git a/src/borrow.rs b/src/borrow.rs
index be69de5..b39b892 100644
--- a/src/borrow.rs
+++ b/src/borrow.rs
@@ -1,10 +1,3 @@
-// Copyright 2019 Google LLC
-//
-// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
-// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
-// http://opensource.org/licenses/MIT>, at your option. This file may not be
-// copied, modified, or distributed except according to those terms.
-
 use core::sync::atomic::{AtomicUsize, Ordering};
 
 /// A bit mask used to signal the `AtomicBorrow` has an active mutable borrow.
diff --git a/src/bundle.rs b/src/bundle.rs
index 6fad183..776abdf 100644
--- a/src/bundle.rs
+++ b/src/bundle.rs
@@ -1,10 +1,3 @@
-// Copyright 2019 Google LLC
-//
-// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
-// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
-// http://opensource.org/licenses/MIT>, at your option. This file may not be
-// copied, modified, or distributed except according to those terms.
-
 use crate::alloc::vec::Vec;
 use core::any::{type_name, TypeId};
 use core::ptr::NonNull;
diff --git a/src/command_buffer.rs b/src/command_buffer.rs
index 50ca64e..694e877 100644
--- a/src/command_buffer.rs
+++ b/src/command_buffer.rs
@@ -1,10 +1,3 @@
-// Copyright 2019 Google LLC
-//
-// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
-// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
-// http://opensource.org/licenses/MIT>, at your option. This file may not be
-// copied, modified, or distributed except according to those terms.
-
 use core::any::TypeId;
 use core::mem;
 use core::ops::Range;
diff --git a/src/entity_builder.rs b/src/entity_builder.rs
index bb3f1fd..32a2830 100644
--- a/src/entity_builder.rs
+++ b/src/entity_builder.rs
@@ -1,10 +1,3 @@
-// Copyright 2019 Google LLC
-//
-// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
-// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
-// http://opensource.org/licenses/MIT>, at your option. This file may not be
-// copied, modified, or distributed except according to those terms.
-
 use crate::alloc::alloc::{alloc, dealloc, Layout};
 use crate::alloc::vec::Vec;
 use crate::bundle::{DynamicBundleClone, DynamicClone};
diff --git a/src/lib.rs b/src/lib.rs
index 68a6d8d..ea0413e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,10 +1,3 @@
-// Copyright 2019 Google LLC
-//
-// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
-// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
-// http://opensource.org/licenses/MIT>, at your option. This file may not be
-// copied, modified, or distributed except according to those terms.
-
 //! A handy ECS
 //!
 //! hecs provides a high-performance, minimalist entity-component-system (ECS) world. It is a
diff --git a/src/query.rs b/src/query.rs
index cbc47db..634bcd2 100644
--- a/src/query.rs
+++ b/src/query.rs
@@ -1,10 +1,3 @@
-// Copyright 2019 Google LLC
-//
-// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
-// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
-// http://opensource.org/licenses/MIT>, at your option. This file may not be
-// copied, modified, or distributed except according to those terms.
-
 use core::any::TypeId;
 use core::marker::PhantomData;
 use core::ptr::NonNull;
diff --git a/src/world.rs b/src/world.rs
index d6e7bc6..613cdc1 100644
--- a/src/world.rs
+++ b/src/world.rs
@@ -1,10 +1,3 @@
-// Copyright 2019 Google LLC
-//
-// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
-// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
-// http://opensource.org/licenses/MIT>, at your option. This file may not be
-// copied, modified, or distributed except according to those terms.
-
 use crate::alloc::{vec, vec::Vec};
 use core::any::TypeId;
 use core::borrow::Borrow;


Test patch:
diff --git a/tests/tests.rs b/tests/tests.rs
index d36eb49..6aa8719 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -1,10 +1,4 @@
 #![allow(deprecated)]
-// Copyright 2019 Google LLC
-//
-// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
-// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
-// http://opensource.org/licenses/MIT>, at your option. This file may not be
-// copied, modified, or distributed except according to those terms.
 
 use std::borrow::Cow;