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

View File

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