Skip to content

Commit

Permalink
Makes speed and cut transformations not exported
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciro S. Costa committed Jul 4, 2018
1 parent e9bce15 commit 76043da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions commands/cut.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ EXAMPLES:
},
}

type CutTransformation struct {
type cutTransformation struct {
from float64
to float64
}

func (t *CutTransformation) Transform(c *cast.Cast) (err error) {
func (t *cutTransformation) Transform(c *cast.Cast) (err error) {
err = editor.Cut(c, t.from, t.to)
return
}
Expand All @@ -64,7 +64,7 @@ func cutAction(c *cli.Context) (err error) {
var (
input = c.Args().First()
output = c.String("out")
transformation = &CutTransformation{
transformation = &cutTransformation{
from: c.Float64("start"),
to: c.Float64("end"),
}
Expand Down
6 changes: 3 additions & 3 deletions commands/speed.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ EXAMPLES:
},
}

type SpeedTransformation struct {
type speedTransformation struct {
from float64
to float64
factor float64
}

func (t *SpeedTransformation) Transform(c *cast.Cast) (err error) {
func (t *speedTransformation) Transform(c *cast.Cast) (err error) {
if t.from == 0 && t.to == 0 {
t.from = c.EventStream[0].Time
t.to = c.EventStream[len(c.EventStream)-1].Time
Expand All @@ -79,7 +79,7 @@ func speedAction(c *cli.Context) (err error) {
var (
input = c.Args().First()
output = c.String("out")
transformation = &SpeedTransformation{
transformation = &speedTransformation{
factor: c.Float64("factor"),
from: c.Float64("start"),
to: c.Float64("end"),
Expand Down

0 comments on commit 76043da

Please sign in to comment.