Skip to content

Commit

Permalink
Merge pull request #1735 from stweil/pdblock
Browse files Browse the repository at this point in the history
Remove blckerr.h
  • Loading branch information
zdenop committed Jul 3, 2018
2 parents 04e0273 + 889f7ea commit 4b26b8d
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 49 deletions.
3 changes: 2 additions & 1 deletion src/ccstruct/Makefile.am
Expand Up @@ -12,7 +12,8 @@ endif

pkginclude_HEADERS = publictypes.h
noinst_HEADERS = \
blamer.h blckerr.h blobbox.h blobs.h blread.h boxread.h boxword.h ccstruct.h coutln.h crakedge.h \
blamer.h blobbox.h blobs.h blread.h boxread.h boxword.h \
ccstruct.h coutln.h crakedge.h \
debugpixa.h detlinefit.h dppoint.h fontinfo.h genblob.h \
imagedata.h \
ipoints.h \
Expand Down
29 changes: 0 additions & 29 deletions src/ccstruct/blckerr.h

This file was deleted.

5 changes: 2 additions & 3 deletions src/ccstruct/ocrblock.cpp
@@ -1,8 +1,8 @@
/**********************************************************************
* File: ocrblock.cpp (Formerly block.c)
* Description: BLOCK member functions and iterator functions.
* Author: Ray Smith
* Created: Fri Mar 15 09:41:28 GMT 1991
* Author: Ray Smith
* Created: Fri Mar 15 09:41:28 GMT 1991
*
* (C) Copyright 1991, Hewlett-Packard Ltd.
** Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -20,7 +20,6 @@
#include "ocrblock.h"
#include <cstdlib>
#include <memory> // std::unique_ptr
#include "blckerr.h"
#include "stepblob.h"
#include "tprintf.h"

Expand Down
10 changes: 6 additions & 4 deletions src/ccstruct/pdblock.cpp
@@ -1,8 +1,8 @@
/**********************************************************************
* File: pdblock.cpp (Formerly pdblk.c)
* File: pdblock.cpp
* Description: PDBLK member functions and iterator functions.
* Author: Ray Smith
* Created: Fri Mar 15 09:41:28 GMT 1991
* Author: Ray Smith
* Created: Fri Mar 15 09:41:28 GMT 1991
*
* (C) Copyright 1991, Hewlett-Packard Ltd.
** Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -21,7 +21,6 @@
#include <cstdlib>
#include <memory> // std::unique_ptr
#include "allheaders.h"
#include "blckerr.h"

// Include automatically generated configuration file if running autoconf.
#ifdef HAVE_CONFIG_H
Expand All @@ -30,6 +29,9 @@

#define BLOCK_LABEL_HEIGHT 150 //char height of block id

const ERRCODE BADBLOCKLINE = "Y coordinate in block out of bounds";
const ERRCODE LOSTBLOCKLINE = "Can't find rectangle for line";

CLISTIZE (PDBLK)
/**********************************************************************
* PDBLK::PDBLK
Expand Down
1 change: 0 additions & 1 deletion src/ccstruct/werd.cpp
Expand Up @@ -17,7 +17,6 @@
*
**********************************************************************/

#include "blckerr.h"
#include "helpers.h"
#include "linlsq.h"
#include "werd.h"
Expand Down
21 changes: 10 additions & 11 deletions src/ccstruct/werd.h
@@ -1,8 +1,8 @@
/**********************************************************************
* File: word.h
* File: werd.h
* Description: Code for the WERD class.
* Author: Ray Smith
* Created: Tue Oct 08 14:32:12 BST 1991
* Author: Ray Smith
* Created: Tue Oct 08 14:32:12 BST 1991
*
* (C) Copyright 1991, Hewlett-Packard Ltd.
** Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -17,15 +17,14 @@
*
**********************************************************************/

#ifndef WERD_H
#define WERD_H
#ifndef WERD_H
#define WERD_H

#include "params.h"
#include "bits16.h"
#include "elst2.h"
#include "strngs.h"
#include "blckerr.h"
#include "stepblob.h"
#include "params.h"
#include "bits16.h"
#include "elst2.h"
#include "strngs.h"
#include "stepblob.h"

enum WERD_FLAGS
{
Expand Down

0 comments on commit 4b26b8d

Please sign in to comment.