Skip to content

Commit

Permalink
[io, app] Remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: inkeliz <[email protected]>
  • Loading branch information
inkeliz committed Jun 3, 2024
1 parent 13cf6a1 commit 8564fa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
10 changes: 1 addition & 9 deletions app/internal/windows/windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ const (

CW_USEDEFAULT = -2147483648

ERROR_ALREADY_EXISTS = 183

GWL_STYLE = ^(uintptr(16) - 1) // -16

GCS_COMPSTR = 0x0008
Expand All @@ -144,8 +142,7 @@ const (
CFS_POINT = 0x0002
CFS_CANDIDATEPOS = 0x0040

HWND_TOPMOST = ^(uint32(1) - 1) // -1
HWND_BROADCAST = 0xFFFF
HWND_TOPMOST = ^(uint32(1) - 1) // -1

HTCAPTION = 2
HTCLIENT = 1
Expand Down Expand Up @@ -339,11 +336,6 @@ const (
LR_MONOCHROME = 0x00000001
LR_SHARED = 0x00008000
LR_VGACOLOR = 0x00000080

FILE_MAP_WRITE = 0x0002
FILE_MAP_READ = 0x0004

PAGE_READWRITE = 0x00000004
)

var (
Expand Down
12 changes: 3 additions & 9 deletions app/os_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -924,20 +924,14 @@ func (w *window) onOpenURI(uri string) bool {
return false
}

found := false
for _, scheme := range strings.Split(schemesURI, ",") {
if u.Scheme == scheme {
found = true
break
w.ProcessEvent(transfer.URLEvent{URL: u})
return true
}
}

if !found {
return false
}

w.ProcessEvent(transfer.URLEvent{URL: u})
return true
return false
}

func convertKeyCode(code uintptr) (key.Name, bool) {
Expand Down

0 comments on commit 8564fa9

Please sign in to comment.