diff --git a/web/src/camo/rng.ts b/web/src/camo/rng.ts index 5e99fec..e783071 100644 --- a/web/src/camo/rng.ts +++ b/web/src/camo/rng.ts @@ -25,16 +25,6 @@ export function rng(seed: number): () => number { }; } -/** A seed from a string, so "the same camo" can be named as well as numbered. */ -export function seedFrom(text: string): number { - let h = 2166136261 >>> 0; - for (let i = 0; i < text.length; i++) { - h ^= text.charCodeAt(i); - h = Math.imul(h, 16777619); - } - return h >>> 0; -} - export function randomSeed(): number { return (Math.random() * 4294967296) >>> 0; } diff --git a/web/src/devauth.ts b/web/src/devauth.ts index 434f9b1..c656089 100644 --- a/web/src/devauth.ts +++ b/web/src/devauth.ts @@ -128,15 +128,3 @@ export async function devSignOut(): Promise { /* the local session is going away regardless */ } } - -/** - * Loopback clients only work on the IP origin. The library redirects a - * `localhost` origin to the IP form itself, but saying so beats letting - * someone wonder why the address bar changed. - */ -export function devOriginIsLoopback(): boolean { - return ( - window.location.hostname === "127.0.0.1" || - window.location.hostname === "[::1]" - ); -}