Skip to content

Commit

Permalink
Delete unused url method #47
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianK13 committed Nov 8, 2024
1 parent dc45ad2 commit 7c82cb6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 32 deletions.
10 changes: 1 addition & 9 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,7 @@ import { viridis } from './colormaps.js';
import * as elevation from './elevation.js';
import * as sun from './sun.js';
import * as triangleUtils from './triangleUtils.js';
import {
CalculateParams,
CartesianPoint,
ColorMap,
isValidUrl,
SolarIrradianceData,
SphericalPoint,
SunVector,
} from './utils.js';
import { CalculateParams, CartesianPoint, ColorMap, SolarIrradianceData, SphericalPoint, SunVector } from './utils.js';

// @ts-ignore
import { rayTracingWebGL } from './rayTracingWebGL.js';
Expand Down
12 changes: 0 additions & 12 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
/**
@ignore
*/
export function isValidUrl(urlString: string): boolean {
try {
new URL(urlString);
return true;
} catch (e) {
return false;
}
}

export type SolarIrradianceData = {
metadata: {
description: string;
Expand Down
11 changes: 0 additions & 11 deletions tests/utils.test.ts

This file was deleted.

0 comments on commit 7c82cb6

Please sign in to comment.