internal/glfwwin: remove unused functions

This commit is contained in:
Hajime Hoshi 2023-01-14 17:02:57 +09:00
parent 72f026e254
commit 96a44eceaf
2 changed files with 0 additions and 25 deletions

View File

@ -339,22 +339,6 @@ func (w *Window) SetCursorPos(xpos, ypos float64) error {
}
}
func CreateCursor(image *Image, xhot, yhot int) (*Cursor, error) {
if !_glfw.initialized {
return nil, NotInitialized
}
cursor := &Cursor{}
_glfw.cursors = append(_glfw.cursors, cursor)
if err := cursor.platformCreateCursor(image, xhot, yhot); err != nil {
_ = cursor.Destroy()
return nil, err
}
return cursor, nil
}
func CreateStandardCursor(shape StandardCursor) (*Cursor, error) {
if !_glfw.initialized {
return nil, NotInitialized

View File

@ -2216,15 +2216,6 @@ func platformGetKeyScancode(key Key) int {
return _glfw.win32.scancodes[key]
}
func (c *Cursor) platformCreateCursor(image *Image, xhot, yhot int) error {
h, err := createIcon(image, xhot, yhot, false)
if err != nil {
return err
}
c.win32.handle = _HCURSOR(h)
return nil
}
func (c *Cursor) platformCreateStandardCursor(shape StandardCursor) error {
if microsoftgdk.IsXbox() {
return nil