| 161 | } |
| 162 | |
| 163 | type StringConn struct { |
| 164 | A StringEnd `json:"a"` |
| 165 | B StringEnd `json:"b"` |
| 166 | Tight bool `json:"tight"` |
| 167 | InFront bool `json:"front,omitempty"` |
| 168 | |
| 169 | // legacy v2 fields (loaded, never written) |
| 170 | FromID string `json:"from,omitempty"` |
| 171 | ToID string `json:"to,omitempty"` |
| 172 | } |
| 173 | |
| 174 | func (s *StringConn) normalizeLegacy() { |
| 175 | if s.A.NoteID == "" && s.A.X == 0 && s.A.Y == 0 && s.FromID != "" { |
nothing calls this directly
no outgoing calls
no test coverage detected