aboutsummaryrefslogtreecommitdiff
path: root/dw
diff options
context:
space:
mode:
Diffstat (limited to 'dw')
-rw-r--r--dw/outofflowmgr.cc19
-rw-r--r--dw/outofflowmgr.hh4
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);