Skip to content

Commit 65b839e

Browse files
committed
Remove unused method TessdataManager::OverwriteEntry
Signed-off-by: Stefan Weil <[email protected]>
1 parent 6bebe71 commit 65b839e

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

ccutil/tessdatamanager.cpp

-8
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,6 @@ bool TessdataManager::LoadMemBuffer(const char *name, const char *data,
8080
return true;
8181
}
8282

83-
// Overwrites a single entry of the given type.
84-
void TessdataManager::OverwriteEntry(TessdataType type, const char *data,
85-
int size) {
86-
is_loaded_ = true;
87-
entries_[type].resize_no_init(size);
88-
memcpy(&entries_[type][0], data, size);
89-
}
90-
9183
// Saves to the given filename.
9284
bool TessdataManager::SaveFile(const STRING &filename,
9385
FileWriter writer) const {

ccutil/tessdatamanager.h

-2
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ class TessdataManager {
139139
// Loads from the given memory buffer as if a file, remembering name as some
140140
// arbitrary source id for caching.
141141
bool LoadMemBuffer(const char *name, const char *data, int size);
142-
// Overwrites a single entry of the given type.
143-
void OverwriteEntry(TessdataType type, const char *data, int size);
144142

145143
// Saves to the given filename.
146144
bool SaveFile(const STRING &filename, FileWriter writer) const;

0 commit comments

Comments
 (0)