diff options
author | Stephen Gutekanst <stephen.gutekanst@gmail.com> | 2015-01-21 00:10:14 -0700 |
---|---|---|
committer | Dmitri Shuralyov <shurcooL@gmail.com> | 2015-02-21 18:51:44 -0800 |
commit | 860f4aee2bce8aaf38aada4739c7dd82edbf2341 (patch) | |
tree | 5ca74bf807d54dcf09b519442436f4eb3b1acfd6 | |
parent | 7912dfb0b904e9eba4e6afa047f9ce52cd251ff0 (diff) | |
download | glfw-860f4aee2bce8aaf38aada4739c7dd82edbf2341.tar.gz |
Remove needless return statements.
-rw-r--r-- | context.go | 4 | ||||
-rw-r--r-- | glfw.go | 1 | ||||
-rw-r--r-- | monitor.go | 3 | ||||
-rw-r--r-- | window.go | 1 |
4 files changed, 0 insertions, 9 deletions
@@ -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 @@ -46,7 +46,6 @@ func Init() error { func Terminate() { flushErrors() C.glfwTerminate() - return } // GetVersion retrieves the major, minor and revision numbers of the GLFW @@ -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 } @@ -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 |