Skip to content

Commit

Permalink
Document isFrameShouldBeInSequence and move to common_ids.go
Browse files Browse the repository at this point in the history
  • Loading branch information
n10v committed Feb 16, 2017
1 parent a0ab1f7 commit 2a55b45
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 7 additions & 0 deletions common_ids.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,10 @@ var sequenceConstructors = map[string]func() sequencer{
"COMM": newCommentSequence,
"USLT": newUSLFSequence,
}

// isFrameShouldBeInSequence checks if frame with corresponding ID should
// be added to sequence.
func isFrameShouldBeInSequence(id string) bool {
_, exists := sequenceConstructors[id]
return exists
}
5 changes: 0 additions & 5 deletions tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ func (t *Tag) AddFrame(id string, f Framer) {
}
}

func isFrameShouldBeInSequence(id string) bool {
_, exists := sequenceConstructors[id]
return exists
}

// AddAttachedPicture adds a picture frame to tag.
//
// Example:
Expand Down

0 comments on commit 2a55b45

Please sign in to comment.