From 0035d119d6b9a8b2bd5550159a84c6289bff724f Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 29 Mar 2010 21:12:30 +0000 Subject: [PATCH] removed some unnecessary intermediate code that snuck into the commit git-svn-id: svn://svn.open-ils.org/ILS/trunk@16052 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Search.pm | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search.pm index 3e7d15d1e6..417649720e 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Search.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Search.pm @@ -73,7 +73,6 @@ sub spellcheck { $class ||= 'default'; my @conf_path = (apps => 'open-ils.search' => app_settings => spelling_dictionary => $class); - push(@conf_path, $class) if $class; if( my $dict = $conf->config_value(@conf_path) ) { $speller->set_option('master', $dict); @@ -99,10 +98,6 @@ sub spellcheck { push(@trimmed, $sug); } - # remove alternate-cased duplicates and versions of the origin word - @suggestions = grep { lc($_) ne $word } @suggestions; - my %sugs = map { lc($_) => 1 } @suggestions; - push( @resp, { word => $word, -- 2.11.0