From f9c8cfb77ae9482baaa7a2f643af206621006b0c Mon Sep 17 00:00:00 2001
From: Johannes Loher <johannes.loher@fg4f.de>
Date: Mon, 16 May 2022 02:19:31 +0200
Subject: [PATCH] chore: remove unused file and add missing reuse headers

---
 src/systems/ds4.ts           |  4 ++++
 src/systems/index.ts         |  4 ++++
 src/utils.ts                 | 20 --------------------
 templates/combat-tracker.hbs |  6 ++++++
 4 files changed, 14 insertions(+), 20 deletions(-)
 delete mode 100644 src/utils.ts

diff --git a/src/systems/ds4.ts b/src/systems/ds4.ts
index 1a5f1bc..148f3ab 100644
--- a/src/systems/ds4.ts
+++ b/src/systems/ds4.ts
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2022 Johannes Loher
+//
+// SPDX-License-Identifier: MIT
+
 import { packageId } from '../constants';
 
 import type { TickwerkCombatant } from '../data/documents/combatant';
diff --git a/src/systems/index.ts b/src/systems/index.ts
index e274e08..4ed37b3 100644
--- a/src/systems/index.ts
+++ b/src/systems/index.ts
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2022 Johannes Loher
+//
+// SPDX-License-Identifier: MIT
+
 import { getGame } from '../helpers';
 import { registerDS4SpecificFunctionality } from './ds4';
 
diff --git a/src/utils.ts b/src/utils.ts
deleted file mode 100644
index 273ea54..0000000
--- a/src/utils.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-// SPDX-FileCopyrightText: 2021 Johannes Loher
-//
-// SPDX-License-Identifier: MIT
-
-const defaultMessage =
-  'There has been an unexpected error in the Tickwerk module. For more details, please take a look at the console (F12).';
-
-/**
- * Tests if the given `value` is truthy.
- *
- * If it is not truthy, an {@link Error} is thrown, which depends on the given `message` parameter:
- * - If `message` is a string`, it is used to construct a new {@link Error} which then is thrown.
- * - If `message` is an instance of {@link Error}, it is thrown.
- * - If `message` is `undefined`, an {@link Error} with a default message is thrown.
- */
-export const enforce = (value: unknown, message: string | Error = defaultMessage): asserts value => {
-  if (!value) {
-    throw message instanceof Error ? message : new Error(message);
-  }
-};
diff --git a/templates/combat-tracker.hbs b/templates/combat-tracker.hbs
index 560ca1c..310f334 100644
--- a/templates/combat-tracker.hbs
+++ b/templates/combat-tracker.hbs
@@ -1,3 +1,9 @@
+{{!--
+SPDX-FileCopyrightText: 2022 Johannes Loher
+
+SPDX-License-Identifier: MIT
+--}}
+
 <section class="tab sidebar-tab directory flexcol" id="combat" data-tab="combat">
     <header id="combat-round">
         {{#if user.isGM}}