]> granicus.if.org Git - python/commitdiff
remove unused 'encoding' member from the compiler struct
authorBenjamin Peterson <benjamin@python.org>
Wed, 17 Jun 2009 03:23:04 +0000 (03:23 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 17 Jun 2009 03:23:04 +0000 (03:23 +0000)
Python/compile.c

index 0a83bfce319b0fb86ed6c629f290679fafe0d05f..29cd95055365954cfd80712638c1b81c22f447f9 100644 (file)
@@ -140,7 +140,6 @@ struct compiler {
 
        struct compiler_unit *u; /* compiler state for current block */
        PyObject *c_stack;       /* Python list holding compiler_unit ptrs */
-       char *c_encoding;        /* source encoding (a borrowed reference) */
        PyArena *c_arena;        /* pointer to memory allocation arena */
 };
 
@@ -282,9 +281,6 @@ PyAST_Compile(mod_ty mod, const char *filename, PyCompilerFlags *flags,
                goto finally;
        }
 
-       /* XXX initialize to NULL for now, need to handle */
-       c.c_encoding = NULL;
-
        co = compiler_mod(&c, mod);
 
  finally: