mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Remove hash function
This commit is contained in:
@ -1840,21 +1840,6 @@ async function loadContextSettings() {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a hash of the Fuse configuration keys
|
||||
* @param {Array<{name: string, weight: number, getFn?: Function}>} keys
|
||||
* @returns {number} Hash of the keys configuration
|
||||
*/
|
||||
function hashFuseKeys(keys) {
|
||||
// Convert keys to a stable string representation
|
||||
const keyString = keys.map(k => {
|
||||
const getFnString = k.getFn ? k.getFn.toString() : '';
|
||||
return `${k.name}:${k.weight}:${getFnString}`;
|
||||
}).join('|');
|
||||
|
||||
return getStringHash(keyString);
|
||||
}
|
||||
|
||||
/**
|
||||
* Common function to perform fuzzy search with caching
|
||||
* @param {string} type - Type of search from fuzzySearchCategories
|
||||
|
Reference in New Issue
Block a user