aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Gutekanst <stephen.gutekanst@gmail.com>2015-01-21 00:10:14 -0700
committerDmitri Shuralyov <shurcooL@gmail.com>2015-02-21 18:51:44 -0800
commit860f4aee2bce8aaf38aada4739c7dd82edbf2341 (patch)
tree5ca74bf807d54dcf09b519442436f4eb3b1acfd6
parent7912dfb0b904e9eba4e6afa047f9ce52cd251ff0 (diff)
downloadglfw-860f4aee2bce8aaf38aada4739c7dd82edbf2341.tar.gz
Remove needless return statements.
-rw-r--r--context.go4
-rw-r--r--glfw.go1
-rw-r--r--monitor.go3
-rw-r--r--window.go1
4 files changed, 0 insertions, 9 deletions
diff --git a/context.go b/context.go
index 3e3091b..9bb5326 100644
--- a/context.go
+++ b/context.go
@@ -15,14 +15,12 @@ import (
func (w *Window) MakeContextCurrent() {
C.glfwMakeContextCurrent(w.data)
panicError()
- return
}
// DetachCurrentContext detaches the current context.
func DetachCurrentContext() {
C.glfwMakeContextCurrent(nil)
panicError()
- return
}
// GetCurrentContext returns the window whose context is current.
@@ -41,7 +39,6 @@ func GetCurrentContext() *Window {
func (w *Window) SwapBuffers() {
C.glfwSwapBuffers(w.data)
panicError()
- return
}
// SwapInterval sets the swap interval for the current context, i.e. the number
@@ -61,7 +58,6 @@ func (w *Window) SwapBuffers() {
func SwapInterval(interval int) {
C.glfwSwapInterval(C.int(interval))
panicError()
- return
}
// ExtensionSupported returns whether the specified OpenGL or context creation
diff --git a/glfw.go b/glfw.go
index 1675341..329c9b5 100644
--- a/glfw.go
+++ b/glfw.go
@@ -46,7 +46,6 @@ func Init() error {
func Terminate() {
flushErrors()
C.glfwTerminate()
- return
}
// GetVersion retrieves the major, minor and revision numbers of the GLFW
diff --git a/monitor.go b/monitor.go
index 958e496..a48d26c 100644
--- a/monitor.go
+++ b/monitor.go
@@ -122,7 +122,6 @@ func SetMonitorCallback(cbfun func(monitor *Monitor, event MonitorEvent)) {
C.glfwSetMonitorCallbackCB()
}
panicError()
- return
}
// GetVideoModes returns an array of all video modes supported by the monitor.
@@ -165,7 +164,6 @@ func (m *Monitor) GetVideoMode() *VidMode {
func (m *Monitor) SetGamma(gamma float32) {
C.glfwSetGamma(m.data, C.float(gamma))
panicError()
- return
}
// GetGammaRamp retrieves the current gamma ramp of the monitor.
@@ -206,5 +204,4 @@ func (m *Monitor) SetGammaRamp(ramp *GammaRamp) {
C.glfwSetGammaRamp(m.data, &rampC)
panicError()
- return
}
diff --git a/window.go b/window.go
index 333e605..81ebc85 100644
--- a/window.go
+++ b/window.go
@@ -597,7 +597,6 @@ func (w *Window) SetClipboardString(str string) {
defer C.free(unsafe.Pointer(cp))
C.glfwSetClipboardString(w.data, cp)
panicError()
- return
}
// GetClipboardString returns the contents of the system clipboard, if it