diff options
author | Sebastian Geerken <devnull@localhost> | 2014-03-17 19:49:07 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-03-17 19:49:07 +0100 |
commit | 2edfcf340236c6293c15535949bd0ce3730a9884 (patch) | |
tree | 429d81c1816608cda2c4ae22ef7cf5b154fa37b6 | |
parent | 6fce91eb42af3d1bd2e023202df5493c57c7992e (diff) |
Removed unused method.
-rw-r--r-- | dw/outofflowmgr.cc | 19 | ||||
-rw-r--r-- | dw/outofflowmgr.hh | 4 |
2 files changed, 0 insertions, 23 deletions
diff --git a/dw/outofflowmgr.cc b/dw/outofflowmgr.cc index 852acf6b..da5a6e0b 100644 --- a/dw/outofflowmgr.cc +++ b/dw/outofflowmgr.cc @@ -809,25 +809,6 @@ bool OutOfFlowMgr::hasRelationChanged (bool oldTBAlloc, return result; } -bool OutOfFlowMgr::isTextblockCoveredByFloat (Float *vloat, Textblock *tb, - int tbx, int tby, - int tbWidth, int tbHeight, - int *floatPos) -{ - assert (wasAllocated (vloat->generatingBlock)); - - int flh = vloat->dirty ? 0 : vloat->size.ascent + vloat->size.descent; - int y1 = getAllocation(vloat->generatingBlock)->y + vloat->yReal; - int y2 = y1 + flh; - - // TODO: Also regard horizontal dimension (same for tellFloatPosition)? - if (y2 > tby && y1 < tby + tbHeight) { - *floatPos = y1 - tby; - return true; - } else - return false; -} - void OutOfFlowMgr::moveFromGBToCB (Side side) { SortedFloatsVector *dest = side == LEFT ? leftFloatsCB : rightFloatsCB; diff --git a/dw/outofflowmgr.hh b/dw/outofflowmgr.hh index 3ed98a99..fdd985e3 100644 --- a/dw/outofflowmgr.hh +++ b/dw/outofflowmgr.hh @@ -256,10 +256,6 @@ private: int newFlx, int newFly, int newFlw, int newFlh, Side side, int *floatPos); - bool isTextblockCoveredByFloat (Float *vloat, Textblock *tb, - int tbx, int tby, int tbWidth, int tbHeight, - int *floatPos); - void drawFloats (SortedFloatsVector *list, core::View *view, core::Rectangle *area); void drawAbsolutelyPositioned (core::View *view, core::Rectangle *area); |