Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🔥 Remove unused preventWidow utility

Luke Vellaa1ce2123faf1
diff --git a/packages/utils/index.ts b/packages/utils/index.ts
deleted file mode 100644
index eb634b9ac..000000000
--- a/packages/utils/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from "./src/prevent-widows";
diff --git a/packages/utils/src/prevent-widows.ts b/packages/utils/src/prevent-widows.ts
deleted file mode 100644
index e765c8698..000000000
--- a/packages/utils/src/prevent-widows.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-export function preventWidows(text = "") {
- if (text.split(" ").length < 3) {
- return text;
- }
- const index = text.lastIndexOf(" ");
- return [text.substring(0, index), text.substring(index + 1)].join("\u00a0");
-}