1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-10-18 05:14:19 +00:00

Remove CanResolve as it does not work as expected

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-11-10 15:58:42 +01:00
parent 551cd6682d
commit f6db209fd5
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -3,7 +3,6 @@ package sii
import (
"bytes"
"regexp"
"strings"
"github.com/pkg/errors"
)
@ -82,8 +81,6 @@ type Ptr struct {
unit *Unit
}
func (p Ptr) CanResolve() bool { return strings.HasPrefix(p.Target, ".") }
func (p Ptr) MarshalSII() []byte { return []byte(p.Target) }
func (p Ptr) Resolve() Block {