From: erickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4> Date: Mon, 29 Mar 2010 21:12:30 +0000 (+0000) Subject: removed some unnecessary intermediate code that snuck into the commit X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0035d119d6b9a8b2bd5550159a84c6289bff724f;p=contrib%2FConifer.git 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 --- 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,