emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r101683: src/w32console.c (vga_stdcol


From: Juanma Barranquero
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r101683: src/w32console.c (vga_stdcolor_name): Remove unused function.
Date: Thu, 30 Sep 2010 02:09:04 +0200
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 101683
committer: Juanma Barranquero <address@hidden>
branch nick: trunk
timestamp: Thu 2010-09-30 02:09:04 +0200
message:
  src/w32console.c (vga_stdcolor_name): Remove unused function.
modified:
  src/ChangeLog
  src/w32console.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-09-29 14:30:45 +0000
+++ b/src/ChangeLog     2010-09-30 00:09:04 +0000
@@ -1,3 +1,8 @@
+2010-09-30  Juanma Barranquero  <address@hidden>
+
+       * w32console.c (vga_stdcolor_name): Remove unused function;
+       presumed dead after revno 82799 (2007-11-30).
+
 2010-09-29  Lars Magne Ingebrigtsen  <address@hidden>
 
        * gnutls.c (emacs_gnutls_handshake): Made into internal function.

=== modified file 'src/w32console.c'
--- a/src/w32console.c  2010-07-08 21:25:08 +0000
+++ b/src/w32console.c  2010-09-30 00:09:04 +0000
@@ -585,28 +585,6 @@
   return char_attr;
 }
 
-
-
-/* Given a color index, return its standard name.  */
-Lisp_Object
-vga_stdcolor_name (int idx)
-{
-  /* Standard VGA colors, in the order of their standard numbering
-     in the default VGA palette.  */
-  static char *vga_colors[16] = {
-    "black", "blue", "green", "cyan", "red", "magenta", "brown",
-    "lightgray", "darkgray", "lightblue", "lightgreen", "lightcyan",
-    "lightred", "lightmagenta", "yellow", "white"
-  };
-
-  extern Lisp_Object Qunspecified;
-
-  if (idx >= 0 && idx < sizeof (vga_colors) / sizeof (vga_colors[0]))
-    return build_string (vga_colors[idx]);
-  else
-    return Qunspecified;       /* meaning the default */
-}
-
 void
 initialize_w32_display (struct terminal *term)
 {


reply via email to

[Prev in Thread] Current Thread [Next in Thread]