aboutsummaryrefslogtreecommitdiff
path: root/font/src/darwin/mod.rs
diff options
context:
space:
mode:
authorAaron Williamson <guitarfanman@gmail.com>2017-04-22 14:01:25 -0600
committerJoe Wilm <jwilm@users.noreply.github.com>2017-05-01 08:52:22 -0700
commit1277e07671a15b87832af90c7244a0cac480b829 (patch)
tree0fa3a16741612d745dd7ce414cf3b4ecab2e66f0 /font/src/darwin/mod.rs
parent7fc50f669056dc9a3a601b3f0248926384abb570 (diff)
downloadalacritty-1277e07671a15b87832af90c7244a0cac480b829.tar.gz
alacritty-1277e07671a15b87832af90c7244a0cac480b829.zip
Remove unnecessary size argument to metrics function
The changes to metric consumption rendered the size argument unnecessary, remove it.
Diffstat (limited to 'font/src/darwin/mod.rs')
-rw-r--r--font/src/darwin/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs
index 757dd5f8..9e92923e 100644
--- a/font/src/darwin/mod.rs
+++ b/font/src/darwin/mod.rs
@@ -135,9 +135,7 @@ impl ::Rasterize for Rasterizer {
}
/// Get metrics for font specified by FontKey
- fn metrics(&self, key: FontKey, _size: Size) -> Result<Metrics, Error> {
- // NOTE size is not needed here since the font loaded already contains
- // it. It's part of the API due to platform differences.
+ fn metrics(&self, key: FontKey) -> Result<Metrics, Error> {
let font = self.fonts
.get(&key)
.ok_or(Error::FontNotLoaded)?;