ref: d1bd6137093c00f14bf93ed0fa60434578f17876
parent: 2add3945e0628832881898b6a3d41d2470b6ff24
author: kvik <[email protected]>
date: Sat Apr 25 07:42:36 EDT 2020
Remove pointless getmouse() wrapper
--- a/samterm/io.c
+++ b/samterm/io.c
@@ -48,13 +48,6 @@
}
void
-getmouse(void)
-{
- if(readmouse(mousectl) < 0)
- panic("mouse");
-}
-
-void
mouseunblock(void)
{
got &= ~(1<<RMouse);
@@ -69,7 +62,8 @@
int
button(int but)
{
- getmouse();
+ if(readmouse(mousectl) < 0)
+ panic("mouse");
return mousep->buttons&(1<<(but-1));
}
--- a/samterm/samterm.h
+++ b/samterm/samterm.h
@@ -100,7 +100,6 @@
void outcmd(void);
void rinit(Rasp*);
void startnewfile(int, Text*);
-void getmouse(void);
void mouseunblock(void);
void kbdblock(void);
void extstart(void);
@@ -161,7 +160,6 @@
void flushtyping(int);
void dumperrmsg(int, int, int, int);
int screensize(int*,int*);
-void getmouse(void);
Rectangle inflatepoint(Point);
Rectangle defaultrect(void);
int promptrect(Rectangle*);