mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 14:41:36 +08:00
Remove unused method TessdataManager::OverwriteEntry
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
6bebe71749
commit
65b839e1aa
@ -80,14 +80,6 @@ bool TessdataManager::LoadMemBuffer(const char *name, const char *data,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Overwrites a single entry of the given type.
|
|
||||||
void TessdataManager::OverwriteEntry(TessdataType type, const char *data,
|
|
||||||
int size) {
|
|
||||||
is_loaded_ = true;
|
|
||||||
entries_[type].resize_no_init(size);
|
|
||||||
memcpy(&entries_[type][0], data, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Saves to the given filename.
|
// Saves to the given filename.
|
||||||
bool TessdataManager::SaveFile(const STRING &filename,
|
bool TessdataManager::SaveFile(const STRING &filename,
|
||||||
FileWriter writer) const {
|
FileWriter writer) const {
|
||||||
|
@ -139,8 +139,6 @@ class TessdataManager {
|
|||||||
// Loads from the given memory buffer as if a file, remembering name as some
|
// Loads from the given memory buffer as if a file, remembering name as some
|
||||||
// arbitrary source id for caching.
|
// arbitrary source id for caching.
|
||||||
bool LoadMemBuffer(const char *name, const char *data, int size);
|
bool LoadMemBuffer(const char *name, const char *data, int size);
|
||||||
// Overwrites a single entry of the given type.
|
|
||||||
void OverwriteEntry(TessdataType type, const char *data, int size);
|
|
||||||
|
|
||||||
// Saves to the given filename.
|
// Saves to the given filename.
|
||||||
bool SaveFile(const STRING &filename, FileWriter writer) const;
|
bool SaveFile(const STRING &filename, FileWriter writer) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user