Bug 1755959 - Remove unused path creation methods. r=gfx-reviewers,aosmond

Differential Revision: https://phabricator.services.mozilla.com/D139036
This commit is contained in:
Jeff Muizelaar 2022-02-17 19:11:38 +00:00
parent 0806a5a40b
commit 493bc03a67
2 changed files with 0 additions and 47 deletions

View File

@ -171,11 +171,6 @@ void gfxContext::NewPath() {
mTransformChanged = false;
}
void gfxContext::ClosePath() {
EnsurePathBuilder();
mPathBuilder->Close();
}
already_AddRefed<Path> gfxContext::GetPath() {
EnsurePath();
RefPtr<Path> path(mPath);
@ -217,22 +212,6 @@ void gfxContext::Fill(const Pattern& aPattern) {
}
}
void gfxContext::MoveTo(const gfxPoint& pt) {
EnsurePathBuilder();
mPathBuilder->MoveTo(ToPoint(pt));
}
void gfxContext::LineTo(const gfxPoint& pt) {
EnsurePathBuilder();
mPathBuilder->LineTo(ToPoint(pt));
}
void gfxContext::Line(const gfxPoint& start, const gfxPoint& end) {
EnsurePathBuilder();
mPathBuilder->MoveTo(ToPoint(start));
mPathBuilder->LineTo(ToPoint(end));
}
// XXX snapToPixels is only valid when snapping for filled
// rectangles and for even-width stroked rectangles.
// For odd-width stroked rectangles, we need to offset x/y by

View File

@ -112,13 +112,6 @@ class gfxContext final {
*/
void NewPath();
/**
* Closes the path, i.e. connects the last drawn point to the first one.
*
* Filling a path will implicitly close it.
*/
void ClosePath();
/**
* Returns the current path.
*/
@ -129,25 +122,6 @@ class gfxContext final {
*/
void SetPath(Path* path);
/**
* Moves the pen to a new point without drawing a line.
*/
void MoveTo(const gfxPoint& pt);
/**
* Draws a line from the current point to pt.
*
* @see MoveTo
*/
void LineTo(const gfxPoint& pt);
// path helpers
/**
* Draws a line from start to end.
*/
void Line(const gfxPoint& start,
const gfxPoint& end); // XXX snapToPixels option?
/**
* Draws the rectangle given by rect.
*/