[前][次][番号順一覧][スレッド一覧]

ruby-changes:26808

From: nobu <ko1@a...>
Date: Thu, 17 Jan 2013 17:50:20 +0900 (JST)
Subject: [ruby-changes:26808] nobu:r38860 (trunk): win32ole: unused variables

nobu	2013-01-17 17:50:09 +0900 (Thu, 17 Jan 2013)

  New Revision: 38860

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38860

  Log:
    win32ole: unused variables
    
    * ext/win32ole/win32ole.c (ole_methods_sub, ole_variables),
      (ole_search_event_at): remove unused variables.

  Modified files:
    trunk/ext/win32ole/win32ole.c

Index: ext/win32ole/win32ole.c
===================================================================
--- ext/win32ole/win32ole.c	(revision 38859)
+++ ext/win32ole/win32ole.c	(revision 38860)
@@ -4170,7 +4170,6 @@ ole_methods_sub(ITypeInfo *pOwnerTypeInf https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L4170
     HRESULT hr;
     TYPEATTR *pTypeAttr;
     BSTR bstr;
-    char *pstr;
     FUNCDESC *pFuncDesc;
     VALUE method;
     WORD i;
@@ -4179,7 +4178,6 @@ ole_methods_sub(ITypeInfo *pOwnerTypeInf https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L4178
         ole_raise(hr, eWIN32OLERuntimeError, "failed to GetTypeAttr");
     }
     for(i = 0; i < pTypeAttr->cFuncs; i++) {
-        pstr = NULL;
         hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, i, &pFuncDesc);
         if (FAILED(hr))
              continue;
@@ -6129,7 +6127,6 @@ ole_variables(ITypeInfo *pTypeInfo) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L6127
     WORD i;
     UINT len;
     BSTR bstr;
-    char *pstr;
     VARDESC *pVarDesc;
     struct olevariabledata *pvar;
     VALUE var;
@@ -6144,7 +6141,6 @@ ole_variables(ITypeInfo *pTypeInfo) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L6141
         if(FAILED(hr))
             continue;
         len = 0;
-        pstr = NULL;
         hr = pTypeInfo->lpVtbl->GetNames(pTypeInfo, pVarDesc->memid, &bstr,
                                          1, &len);
         if(FAILED(hr) || len == 0 || !bstr)
@@ -7663,11 +7659,9 @@ static long https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L7659
 ole_search_event_at(VALUE ary, VALUE ev)
 {
     VALUE event;
-    VALUE def_event;
     VALUE event_name;
     long i, len;
     long ret = -1;
-    def_event = Qnil;
     len = RARRAY_LEN(ary);
     for(i = 0; i < len; i++) {
         event = rb_ary_entry(ary, i);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]