mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-26 07:00:03 -05:00
opt: remove useless code
This commit is contained in:
parent
f5ad0f263b
commit
8b752adcd4
1 changed files with 0 additions and 22 deletions
22
src/maomao.c
22
src/maomao.c
|
|
@ -415,8 +415,6 @@ typedef struct {
|
||||||
} SessionLock;
|
} SessionLock;
|
||||||
|
|
||||||
/* function declarations */
|
/* function declarations */
|
||||||
static void logtofile(const char *fmt, ...); // 日志函数
|
|
||||||
static void lognumtofile(float num); // 日志函数
|
|
||||||
static void applybounds(
|
static void applybounds(
|
||||||
Client *c,
|
Client *c,
|
||||||
struct wlr_box *bbox); // 设置边界规则,能让一些窗口拥有比较适合的大小
|
struct wlr_box *bbox); // 设置边界规则,能让一些窗口拥有比较适合的大小
|
||||||
|
|
@ -1742,26 +1740,6 @@ setclient_coordinate_center(struct wlr_box geom, int offsetx, int offsety) {
|
||||||
}
|
}
|
||||||
/* function implementations */
|
/* function implementations */
|
||||||
|
|
||||||
void logtofile(const char *fmt, ...) {
|
|
||||||
char buf[256];
|
|
||||||
char cmd[256];
|
|
||||||
va_list ap;
|
|
||||||
va_start(ap, fmt);
|
|
||||||
vsprintf((char *)buf, fmt, ap);
|
|
||||||
va_end(ap);
|
|
||||||
unsigned int i = strlen((const char *)buf);
|
|
||||||
|
|
||||||
sprintf(cmd, "echo '%.*s' >> ~/log", i, buf);
|
|
||||||
system(cmd);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* function implementations */
|
|
||||||
void lognumtofile(float num) {
|
|
||||||
char cmd[256];
|
|
||||||
sprintf(cmd, "echo '%f' >> ~/log", num);
|
|
||||||
system(cmd);
|
|
||||||
}
|
|
||||||
|
|
||||||
int // 0.5 custom
|
int // 0.5 custom
|
||||||
applyrulesgeom(Client *c) {
|
applyrulesgeom(Client *c) {
|
||||||
/* rule matching */
|
/* rule matching */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue