internal/glfwwin: remove unused exported functions

This commit is contained in:
Hajime Hoshi 2022-05-27 20:15:36 +09:00
parent 3a6b707b29
commit df0208ec79
2 changed files with 6 additions and 28 deletions

View File

@ -25,7 +25,6 @@ package glfwwin
import ( import (
"sort" "sort"
"unsafe"
) )
func abs(x int) uint { func abs(x int) uint {
@ -257,19 +256,8 @@ func (m *Monitor) GetName() (string, error) {
return m.name, nil return m.name, nil
} }
func (m *Monitor) SetUserPointer(pointer unsafe.Pointer) error { // SetUserPointer is not implemented.
if !_glfw.initialized { // GetUserPointer is not implemented.
return NotInitialized
}
panic("glfwwin: Monitor.SetUserPointer is not implemented")
}
func (m *Monitor) GetUserPointer() (unsafe.Pointer, error) {
if !_glfw.initialized {
return nil, NotInitialized
}
panic("glfwwin: Monitor.GetUserPointer is not implemented")
}
func SetMonitorCallback(cbfun MonitorCallback) (MonitorCallback, error) { func SetMonitorCallback(cbfun MonitorCallback) (MonitorCallback, error) {
if !_glfw.initialized { if !_glfw.initialized {
@ -295,14 +283,6 @@ func (m *Monitor) GetVideoMode() (*VidMode, error) {
return m.currentMode, nil return m.currentMode, nil
} }
func (m *Monitor) SetGamma(gamma float32) { // SetGamma is not implemented.
panic("glfwwin: Monitor.SetGamma is not implemented") // GetGammaRamp is not implemented.
} // SetGammaRamp is not implemented.
func (m *Monitor) GetGammaRamp() *GammaRamp {
panic("glfwwin: Monitor.GetGammaRamp is not implemented")
}
func (m *Monitor) SetGammaRamp(ramp *GammaRamp) {
panic("glfwwin: Monitor.SetGammaRamp is not implemented")
}

View File

@ -317,9 +317,7 @@ func WindowHint(hint Hint, value int) error {
return nil return nil
} }
func WindowHintString(hint Hint, value string) { // WindowHintString is not implemented.
panic("glfwwin: WindowHintString is not implemented")
}
func (w *Window) Destroy() error { func (w *Window) Destroy() error {
if !_glfw.initialized { if !_glfw.initialized {