mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
all: apply suggestions from staticcheck.io
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -128,27 +128,6 @@ func (l Layout) Slice(start, end int) Layout {
|
||||
return out
|
||||
}
|
||||
|
||||
// equals returns true when l2 is logically equivalent to l.
|
||||
func (l Layout) equals(l2 Layout) bool {
|
||||
if len(l.Glyphs) != len(l2.Glyphs) || len(l.Clusters) != len(l2.Clusters) {
|
||||
return false
|
||||
}
|
||||
if l.Runes != l2.Runes || l.Direction != l2.Direction {
|
||||
return false
|
||||
}
|
||||
for i := range l.Clusters {
|
||||
if l.Clusters[i] != l2.Clusters[i] {
|
||||
return false
|
||||
}
|
||||
}
|
||||
for i := range l.Glyphs {
|
||||
if l.Glyphs[i] != l2.Glyphs[i] {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
// Style is the font style.
|
||||
type Style int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user