diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-02-15 11:38:06 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-02-15 17:04:23 +0000 |
commit | eb55885e9a9eec670ed98cbd12dc96d63e6a6623 (patch) | |
tree | 44a43399b639073b30a5dc9ca342445138b1343c /core/fxcrt/fx_coordinates.h | |
parent | 49058400ea8ddf753010dc73e7d381b7a35993ae (diff) | |
download | pdfium-eb55885e9a9eec670ed98cbd12dc96d63e6a6623.tar.xz |
Remove unused FX_RECT methods
These methods aren't used, removed.
Change-Id: Iac298cbfe2cc46dd0358f591f1d7f44494a779c0
Reviewed-on: https://pdfium-review.googlesource.com/2714
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_coordinates.h')
-rw-r--r-- | core/fxcrt/fx_coordinates.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/core/fxcrt/fx_coordinates.h b/core/fxcrt/fx_coordinates.h index 12640216ee..ae09cf341e 100644 --- a/core/fxcrt/fx_coordinates.h +++ b/core/fxcrt/fx_coordinates.h @@ -195,7 +195,6 @@ using CFX_VectorF = CFX_VTemplate<FX_FLOAT>; // LTRB rectangles (y-axis runs downwards). struct FX_RECT { FX_RECT() : left(0), top(0), right(0), bottom(0) {} - FX_RECT(int l, int t, int r, int b) : left(l), top(t), right(r), bottom(b) {} int Width() const { return right - left; } @@ -215,9 +214,6 @@ struct FX_RECT { void Intersect(const FX_RECT& src); void Intersect(int l, int t, int r, int b) { Intersect(FX_RECT(l, t, r, b)); } - void Union(const FX_RECT& other_rect); - void Union(int l, int t, int r, int b) { Union(FX_RECT(l, t, r, b)); } - void Offset(int dx, int dy) { left += dx; right += dx; @@ -230,11 +226,6 @@ struct FX_RECT { bottom == src.bottom; } - bool Contains(const FX_RECT& other_rect) const { - return other_rect.left >= left && other_rect.right <= right && - other_rect.top >= top && other_rect.bottom <= bottom; - } - bool Contains(int x, int y) const { return x >= left && x < right && y >= top && y < bottom; } |