Skip to content

Commit

Permalink
remove unnecessary call to cairo_get_matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
chearon authored and zbjornson committed Aug 17, 2024
1 parent 7dfeb04 commit ba89686
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/CanvasRenderingContext2d.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2766,8 +2766,6 @@ Context2d::MeasureText(const Napi::CallbackInfo& info) {
x_offset = 0.0;
}

cairo_matrix_t matrix;
cairo_get_matrix(ctx, &matrix);
double y_offset = getBaselineAdjustment(layout, state->textBaseline);

obj.Set("width", Napi::Number::New(env, logical_rect.width));
Expand Down

0 comments on commit ba89686

Please sign in to comment.