Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
quackduck committed Feb 1, 2023
1 parent 0da298c commit 6164ddd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions aces.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,6 @@ func newAnyCoding(charset []rune) (*anyCoding, error) {
return &anyCoding{charset, defaultNonPow2ByteChunkSize, runesPerChunk(charset, defaultNonPow2ByteChunkSize), defaultBufSize}, nil
}

//// newAnyCodingWithChunkSize allows setting the length of the chunk whose base is converted at a time
//func newAnyCodingWithChunkSize(charset []rune, chunkSize int) (*anyCoding, error) {
// return &anyCoding{charset, chunkSize, runesPerChunk(charset, chunkSize), defaultBufSize}, nil
//}

func (c *anyCoding) SetByteChunkSize(size int) {
c.chunkSize = size
c.rPerChunk = runesPerChunk(c.charset, size)
Expand Down Expand Up @@ -356,7 +351,6 @@ func (c *anyCoding) Decode(dst io.Writer, src io.Reader) error {
if err == io.EOF {
_, err = dst.Write(result)
}
println("Holy shit lol")
return err
}
if buf[i] == '\n' || buf[i] == '\r' {
Expand Down
2 changes: 1 addition & 1 deletion cmd/aces/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func main() {
}

if os.Args[1] == "--bufsize" {
if len(os.Args)+1 < 2 { // index 2 avaliable?
if len(os.Args)+1 < 2 { // index 2 available?
fmt.Fprintln(os.Stderr, "error: need a value for --bufsize\n"+helpMsg)
return
}
Expand Down

0 comments on commit 6164ddd

Please sign in to comment.