Step 24-A remove setdict
Change-Id: Iab28bf0fd785b9e81fc86837e64a1ef2e315a229
This commit is contained in:
parent
bcec82de66
commit
ddb12ea63a
4 changed files with 0 additions and 20 deletions
|
@ -47,8 +47,6 @@ Dictionary::Dictionary(void *dict, int dictSize, int mmapFd, int dictBufAdjust,
|
|||
fullWordMultiplier, maxWordLength, maxWords, options);
|
||||
mBigramDictionary = new BigramDictionary(mOffsetDict, maxWordLength, maxPredictions);
|
||||
mGestureDecoder = new GestureDecoderWrapper(maxWordLength, maxWords);
|
||||
mGestureDecoder->setDict(mUnigramDictionary, mBigramDictionary,
|
||||
mOffsetDict /* dict root */, 0 /* root pos */);
|
||||
}
|
||||
|
||||
Dictionary::~Dictionary() {
|
||||
|
|
|
@ -48,14 +48,6 @@ class GestureDecoderWrapper : public IncrementalDecoderInterface {
|
|||
inputSize, commitPoint, outWords, frequencies, outputIndices, outputTypes);
|
||||
}
|
||||
|
||||
void setDict(const UnigramDictionary *dict, const BigramDictionary *bigram,
|
||||
const uint8_t *dictRoot, int rootPos) {
|
||||
if (!mIncrementalDecoderInterface) {
|
||||
return;
|
||||
}
|
||||
mIncrementalDecoderInterface->setDict(dict, bigram, dictRoot, rootPos);
|
||||
}
|
||||
|
||||
static void setGestureDecoderFactoryMethod(
|
||||
IncrementalDecoderInterface *(*factoryMethod)(int, int)) {
|
||||
sGestureDecoderFactoryMethod = factoryMethod;
|
||||
|
|
|
@ -32,8 +32,6 @@ class IncrementalDecoderInterface {
|
|||
int *inputXs, int *inputYs, int *times, int *pointerIds, int *codes,
|
||||
int inputSize, int commitPoint, unsigned short *outWords, int *frequencies,
|
||||
int *outputIndices, int *outputTypes) = 0;
|
||||
virtual void setDict(const UnigramDictionary *dict, const BigramDictionary *bigram,
|
||||
const uint8_t *dictRoot, int rootPos) = 0;
|
||||
IncrementalDecoderInterface() { };
|
||||
virtual ~IncrementalDecoderInterface() { };
|
||||
private:
|
||||
|
|
|
@ -48,14 +48,6 @@ class IncrementalDecoderWrapper : public IncrementalDecoderInterface {
|
|||
inputSize, commitPoint, outWords, frequencies, outputIndices, outputTypes);
|
||||
}
|
||||
|
||||
void setDict(const UnigramDictionary *dict, const BigramDictionary *bigram,
|
||||
const uint8_t *dictRoot, int rootPos) {
|
||||
if (!mIncrementalDecoderInterface) {
|
||||
return;
|
||||
}
|
||||
mIncrementalDecoderInterface->setDict(dict, bigram, dictRoot, rootPos);
|
||||
}
|
||||
|
||||
static void setIncrementalDecoderFactoryMethod(
|
||||
IncrementalDecoderInterface *(*factoryMethod)(int, int)) {
|
||||
sIncrementalDecoderFactoryMethod = factoryMethod;
|
||||
|
|
Loading…
Reference in a new issue