]> granicus.if.org Git - clang/commit
Remove the unused TypoCorrectionConsumer::MaxEditDistance.
authorKaelyn Uhrain <rikka@google.com>
Tue, 7 Feb 2012 01:32:58 +0000 (01:32 +0000)
committerKaelyn Uhrain <rikka@google.com>
Tue, 7 Feb 2012 01:32:58 +0000 (01:32 +0000)
commitbb3d9976fd0e037ec9864baeaf23dc138bcb6df0
tree0f5bc303a573b40f9d8b0ea83bf1b3b4fb205dcb
parent2872c8d5465623c1207b17873f228f5d96038d5e
Remove the unused TypoCorrectionConsumer::MaxEditDistance.

MaxEditDistance was effectively unused as it being initialized to the max
unsigned valued but never updated. Removing it avoids conversion
headaches once the "edit distance" of a typo correction is a weighted
composite of several values instead of roughly the number of characters
changed; comparing the weighted composite value to the number of
characters in a typo would require some form of normalization to make it
comparable to the old, character-based notion of edit distance.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149953 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLookup.cpp