Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jczhong84 committed Apr 12, 2024
1 parent 542d02b commit b35fb79
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions querybook/webapp/components/AIAssistant/AICommandBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,6 @@ interface IQueryCellCommandBarProps {
ref: React.Ref<IResizableTextareaHandles>;
}

// const useTablesInQuery = (query: string, language: string) => {
// const [tables, setTables] = useState<string[]>([]);

// useEffect(() => {
// if (!query) {
// return;
// }

// analyzeCode(query, 'autocomplete', language).then((codeAnalysis) => {
// const tableReferences: TableToken[] = [].concat.apply(
// [],
// Object.values(codeAnalysis?.lineage.references ?? {})
// );
// setTables(
// tableReferences.map(({ schema, name }) => `${schema}.${name}`)
// );
// });
// }, [query, language]);

// return tables;
// };

export const AICommandBar: React.FC<IQueryCellCommandBarProps> = forwardRef(
(
{
Expand Down

0 comments on commit b35fb79

Please sign in to comment.