diff --git a/apps/photos/src/components/Search/SearchBar/searchInput/index.tsx b/apps/photos/src/components/Search/SearchBar/searchInput/index.tsx index bbc25cc99e4c3572fdb73790326b1fd3e163e6d6..0029bb1e3cd8504312b5d85457c071786156c82f 100644 --- a/apps/photos/src/components/Search/SearchBar/searchInput/index.tsx +++ b/apps/photos/src/components/Search/SearchBar/searchInput/index.tsx @@ -34,7 +34,6 @@ import { t } from 'i18next'; import memoize from 'memoize-one'; import { LocationTagData } from 'types/entity'; import { FILE_TYPE } from 'constants/file'; -import { addLogLine } from '@ente/shared/logging'; interface Iprops { isOpen: boolean; @@ -70,10 +69,7 @@ export default function SearchInput(props: Iprops) { }, []); async function refreshDefaultOptions() { - const t = Date.now(); - addLogLine('refreshDefaultOptions called'); const defaultOptions = await getDefaultOptions(props.files); - addLogLine(`refreshDefaultOptions end time: ${Date.now() - t}ms`); setDefaultOptions(defaultOptions); } diff --git a/apps/photos/src/services/searchService.ts b/apps/photos/src/services/searchService.ts index 6e81594cbd1cdd6746dd7e4f5fa4149d32bf18aa..90665dd0be7bb28a27a04702637de2b9dc6d311d 100644 --- a/apps/photos/src/services/searchService.ts +++ b/apps/photos/src/services/searchService.ts @@ -174,9 +174,7 @@ function getYearSuggestion(searchPhrase: string): Suggestion[] { export async function getAllPeopleSuggestion(): Promise> { try { - addLogLine('getAllPeopleSuggestion called'); const people = await getAllPeople(200); - addLogLine(`found people: ${people?.length ?? 0}`); return people.map((person) => ({ label: person.name, type: SuggestionType.PERSON,