Skip to content

Commit

Permalink
fix: removing unused utility method (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
adilansari authored May 9, 2023
1 parent 75c7fbc commit 601afe4
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ import {
DeleteQueryOptions,
Filter,
FindQueryOptions,
SortOrder,
GroupByField,
ReadFields,
SortOrder,
TigrisDataTypes,
TigrisSchema,
UpdateFields,
UpdateQueryOptions,
GroupByField,
} from "./types";
import * as fs from "node:fs";
import {
Collation as ProtoCollation,
DeleteRequestOptions as ProtoDeleteRequestOptions,
Expand All @@ -28,9 +27,9 @@ import {
FacetQueryOptions,
MATCH_ALL_QUERY_STRING,
SearchQuery,
TigrisIndexSchema,
VectorQuery,
} from "./search";
import { TigrisIndexSchema } from "./search";
import { SearchIndexRequest as ProtoSearchIndexRequest } from "./proto/server/v1/search_pb";
import {
DuplicatePrimaryKeyOrderError,
Expand Down Expand Up @@ -474,14 +473,6 @@ export const Utility = {
return undefined;
},

_readTestDataFile(path: string): string {
return Utility.objToJsonString(
Utility.jsonStringToObj(fs.readFileSync("src/__tests__/data/" + path, "utf8"), {
serverUrl: "test",
})
);
},

_base64Encode(input: string): string {
return Buffer.from(input, "utf8").toString("base64");
},
Expand Down

0 comments on commit 601afe4

Please sign in to comment.