Skip to content

Commit

Permalink
refactor: Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed Feb 1, 2022
1 parent 974ae8c commit dbd71ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/pages/browse/[type]/[iri].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { queryLatestPublishedCubeFromUnversionedIri } from "../../../rdf/query-c
import { defaultLocale } from "../../../src";
export default GenericBrowse;

/**
* Heuristic to check if a dataset IRI is versioned.
* Versioned iris look like https://blabla/<number/
*/
const isDatasetIriVersioned = (iri: string) => {
return iri.match(/\/\d+\/$/) !== null;
};
Expand Down
2 changes: 0 additions & 2 deletions app/pages/browse/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useRouter } from "next/router";
import React from "react";
import { AppLayout } from "../../components/layout";
import { SelectDatasetStep } from "../../configurator/components/select-dataset-step";
Expand All @@ -18,7 +17,6 @@ export type BrowseParams = {

// Generic component for all browse subpages
export const GenericBrowse = () => {
const router = useRouter();
return (
<AppLayout>
<ConfiguratorStateProvider chartId="new" allowDefaultRedirect={false}>
Expand Down

0 comments on commit dbd71ef

Please sign in to comment.