mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-19 23:19:07 +08:00
Remove unused functions reverse16, reverse32
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
ae6eddcc12
commit
40b69539ff
@ -113,25 +113,3 @@ char window_wait(ScrollView* win) {
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
void reverse32(void *ptr) {
|
||||
char tmp;
|
||||
char *cptr = static_cast<char *>(ptr);
|
||||
|
||||
tmp = *cptr;
|
||||
*cptr = *(cptr + 3);
|
||||
*(cptr + 3) = tmp;
|
||||
tmp = *(cptr + 1);
|
||||
*(cptr + 1) = *(cptr + 2);
|
||||
*(cptr + 2) = tmp;
|
||||
}
|
||||
|
||||
|
||||
void reverse16(void *ptr) {
|
||||
char tmp;
|
||||
char *cptr = static_cast<char *>(ptr);
|
||||
|
||||
tmp = *cptr;
|
||||
*cptr = *(cptr + 1);
|
||||
*(cptr + 1) = tmp;
|
||||
}
|
||||
|
@ -2,7 +2,6 @@
|
||||
* File: callcpp.h
|
||||
* Description: extern C interface calling C++ from C.
|
||||
* Author: Ray Smith
|
||||
* Created: Sun Feb 04 20:39:23 MST 1996
|
||||
*
|
||||
* (C) Copyright 1996, Hewlett-Packard Co.
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@ -106,7 +105,5 @@ void c_make_current( /*move pen */
|
||||
void c_clear_window( /*move pen */
|
||||
void *win);
|
||||
char window_wait(ScrollView* win);
|
||||
void reverse32(void *ptr);
|
||||
void reverse16(void *ptr);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user