Skip to content

Commit

Permalink
Remove unused method TessdataManager::OverwriteEntry
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed May 13, 2017
1 parent 6bebe71 commit 65b839e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions ccutil/tessdatamanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,6 @@ bool TessdataManager::LoadMemBuffer(const char *name, const char *data,
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.
bool TessdataManager::SaveFile(const STRING &filename,
FileWriter writer) const {
Expand Down
2 changes: 0 additions & 2 deletions ccutil/tessdatamanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ class TessdataManager {
// Loads from the given memory buffer as if a file, remembering name as some
// arbitrary source id for caching.
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.
bool SaveFile(const STRING &filename, FileWriter writer) const;
Expand Down

0 comments on commit 65b839e

Please sign in to comment.