From 4d21b10dc4838843fb23ee0b086d62c8683056b6 Mon Sep 17 00:00:00 2001 From: "elias.bachaalany@gmail.com" Date: Wed, 4 Apr 2012 07:45:15 +0000 Subject: [PATCH] removed dead code --- pywraps/py_idaapi.hpp | 3 --- swig/idaapi.i | 3 --- 2 files changed, 6 deletions(-) diff --git a/pywraps/py_idaapi.hpp b/pywraps/py_idaapi.hpp index 37cd11e..e9f84d2 100644 --- a/pywraps/py_idaapi.hpp +++ b/pywraps/py_idaapi.hpp @@ -116,10 +116,7 @@ bool pywraps_check_autoscripts(char *buf, size_t bufsize) { for ( size_t iext=0; iext < qnumber(exts); ++iext ) { - static char fn[QMAXPATH]; qsnprintf(buf, bufsize, "%s.%s", fns[ifn], exts[iext]); - if ( qfileexist(fn) ) - return true; if ( qfileexist(fns[ifn]) ) { qstrncpy(buf, fns[ifn], bufsize); diff --git a/swig/idaapi.i b/swig/idaapi.i index d83359c..f280dde 100644 --- a/swig/idaapi.i +++ b/swig/idaapi.i @@ -1311,10 +1311,7 @@ bool pywraps_check_autoscripts(char *buf, size_t bufsize) { for ( size_t iext=0; iext < qnumber(exts); ++iext ) { - static char fn[QMAXPATH]; qsnprintf(buf, bufsize, "%s.%s", fns[ifn], exts[iext]); - if ( qfileexist(fn) ) - return true; if ( qfileexist(fns[ifn]) ) { qstrncpy(buf, fns[ifn], bufsize);