From e4014abb4a51b19dc724441a2ab8166bf5aaa561 Mon Sep 17 00:00:00 2001
From: Hraban Luyat <hraban@0brg.net>
Date: Mon, 13 Jul 2015 18:36:20 +0100
Subject: [PATCH] Update documentation, remove unused var

---
 encoder.go | 3 +--
 errors.go  | 2 --
 opus.go    | 2 +-
 3 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/encoder.go b/encoder.go
index 700d515..1099ae8 100644
--- a/encoder.go
+++ b/encoder.go
@@ -17,8 +17,7 @@ import "C"
 
 var errEncUninitialized = fmt.Errorf("opus encoder uninitialized")
 
-// Encoder contains the state of an Opus encoder for libopus. Do not use this
-// directly, but call
+// Encoder contains the state of an Opus encoder for libopus.
 type Encoder struct {
 	p *C.struct_OpusEncoder
 	// Memory for the encoder struct allocated on the Go heap to allow Go GC to
diff --git a/errors.go b/errors.go
index f3f606d..9bf482e 100644
--- a/errors.go
+++ b/errors.go
@@ -30,8 +30,6 @@ import "C"
 
 type opusFileError int
 
-var opusfileErrcodes = map[C.int]error{}
-
 var (
 	ERR_OP_FALSE         = opusFileError(C.CONST_OP_FALSE)
 	ERR_OP_EOF           = opusFileError(C.CONST_OP_EOF)
diff --git a/opus.go b/opus.go
index 3d6fc6d..56e70cd 100644
--- a/opus.go
+++ b/opus.go
@@ -18,7 +18,7 @@ package opus
 #cgo CFLAGS: -std=c99 -Wall -Werror -pedantic -Ibuild/include
 #include <opus/opus.h>
 
-// Remap #defines to avoid depending on their literal value
+// Access the preprocessor from CGO
 const int CONST_APPLICATION_VOIP = OPUS_APPLICATION_VOIP;
 const int CONST_APPLICATION_AUDIO = OPUS_APPLICATION_AUDIO;
 const int CONST_APPLICATION_RESTRICTED_LOWDELAY = OPUS_APPLICATION_RESTRICTED_LOWDELAY;
-- 
2.51.0