comparison src/workshop.c @ 2520:6768ebd0bc04 vim73

Remove unused code.
author Bram Moolenaar <bram@vim.org>
date Sun, 08 Aug 2010 16:38:42 +0200
parents 941ff1cd317a
children bfade53bcafb
comparison
equal deleted inserted replaced
2519:a76416990f54 2520:6768ebd0bc04
39 39
40 void workshop_hotkeys(Boolean); 40 void workshop_hotkeys(Boolean);
41 41
42 static Boolean isShowing(int); 42 static Boolean isShowing(int);
43 static win_T *get_window(buf_T *); 43 static win_T *get_window(buf_T *);
44 #if 0
45 static int get_buffer_number(buf_T *);
46 #endif
47 static void updatePriority(Boolean); 44 static void updatePriority(Boolean);
48 static char *addUniqueMnemonic(char *, char *); 45 static char *addUniqueMnemonic(char *, char *);
49 static char *fixup(char *); 46 static char *fixup(char *);
50 static char *get_selection(buf_T *); 47 static char *get_selection(buf_T *);
51 static char *append_selection(int, char *, int *, int *); 48 static char *append_selection(int, char *, int *, int *);
52 static void load_buffer_by_name(char *, int); 49 static void load_buffer_by_name(char *, int);
53 #if 0
54 static void load_buffer_by_number(int, int);
55 #endif
56 static void load_window(char *, int lnum); 50 static void load_window(char *, int lnum);
57 static void warp_to_pc(int); 51 static void warp_to_pc(int);
58 #ifdef FEAT_BEVAL 52 #ifdef FEAT_BEVAL
59 void workshop_beval_cb(BalloonEval *, int); 53 void workshop_beval_cb(BalloonEval *, int);
60 static int computeIndex(int, char_u *, int); 54 static int computeIndex(int, char_u *, int);
475 vim_snprintf(cbuf, sizeof(cbuf), 469 vim_snprintf(cbuf, sizeof(cbuf),
476 "sign unplace %d file=%s", markId, filename); 470 "sign unplace %d file=%s", markId, filename);
477 coloncmd(cbuf, TRUE); 471 coloncmd(cbuf, TRUE);
478 } 472 }
479 473
480 #if 0 /* not used */
481 void
482 workshop_delete_all_marks(
483 void *window,
484 Boolean doRefresh)
485 {
486 #ifdef WSDEBUG_TRACE
487 if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
488 wstrace("workshop_delete_all_marks(%#x, %s)\n",
489 window, doRefresh ? "True" : "False");
490 #endif
491
492 coloncmd("sign unplace *", TRUE);
493 }
494 #endif
495
496 int 474 int
497 workshop_get_mark_lineno( 475 workshop_get_mark_lineno(
498 char *filename, 476 char *filename,
499 int markId) 477 int markId)
500 { 478 {
514 lineno = buf_findsign(buf, markId); 492 lineno = buf_findsign(buf, markId);
515 493
516 return lineno; 494 return lineno;
517 } 495 }
518 496
519
520 #if 0 /* not used */
521 void
522 workshop_adjust_marks(Widget *window, int pos,
523 int inserted, int deleted)
524 {
525 #ifdef WSDEBUG_TRACE
526 if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
527 wstrace("XXXworkshop_adjust_marks(%s, %d, %d, %d)\n",
528 window ? XtName(window) : "<None>", pos, inserted, deleted);
529 #endif
530 }
531 #endif
532 497
533 /* 498 /*
534 * Are there any moved marks? If so, call workshop_move_mark on 499 * Are there any moved marks? If so, call workshop_move_mark on
535 * each of them now. This is how eserve can find out if for example 500 * each of them now. This is how eserve can find out if for example
536 * breakpoints have moved when a program has been recompiled and 501 * breakpoints have moved when a program has been recompiled and
1360 break; 1325 break;
1361 return wp; 1326 return wp;
1362 } 1327 }
1363 1328
1364 1329
1365 #if 0 /* not used */
1366 static int
1367 get_buffer_number(
1368 buf_T *buf) /* buffer to get position of */
1369 {
1370 buf_T *bp; /* iterate over buffer list */
1371 int pos; /* the position in the buffer list */
1372
1373 pos = 1;
1374 for (bp = firstbuf; bp != NULL; bp = bp->b_next)
1375 {
1376 if (bp == buf)
1377 return pos;
1378 pos++;
1379 }
1380
1381 return 1;
1382 }
1383 #endif
1384
1385 static void 1330 static void
1386 updatePriority( 1331 updatePriority(
1387 Boolean subMenu) /* if True then start new submenu pri */ 1332 Boolean subMenu) /* if True then start new submenu pri */
1388 { 1333 {
1389 int pri; /* priority of this menu/item */ 1334 int pri; /* priority of this menu/item */