Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id AED42E014F8 for ; Tue, 4 Jun 2013 06:48:23 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 04 Jun 2013 06:48:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,799,1363158000"; d="scan'208";a="344571126" Received: from ideapad.rb.intel.com ([10.237.105.63]) by fmsmga001.fm.intel.com with ESMTP; 04 Jun 2013 06:48:41 -0700 From: Ioana Grigoropol To: yocto@yoctoproject.org Date: Tue, 4 Jun 2013 16:26:06 +0300 Message-Id: <1370352368-18730-8-git-send-email-ioanax.grigoropol@intel.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1370352368-18730-1-git-send-email-ioanax.grigoropol@intel.com> References: <1370352368-18730-1-git-send-email-ioanax.grigoropol@intel.com> Subject: [Refactor RFC 7/9] Remove unused getInitScript from ProjectInfoHelper X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jun 2013 13:48:23 -0000 Signed-off-by: Ioana Grigoropol --- .../org/yocto/bc/bitbake/ProjectInfoHelper.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ProjectInfoHelper.java b/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ProjectInfoHelper.java index b8d4b29..0d95c01 100644 --- a/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ProjectInfoHelper.java +++ b/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ProjectInfoHelper.java @@ -48,21 +48,6 @@ public class ProjectInfoHelper { return val; } - public static String getInitScript(String path) throws IOException { - File inFile = new File(path); - BufferedReader br = new BufferedReader(new FileReader(inFile)); - StringBuffer sb = new StringBuffer(); - String line = null; - - while ((line = br.readLine()) != null) { - sb.append(line); - } - - br.close(); - - return sb.toString(); - } - public static String getProjectName(String projectRoot) { IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects(); for (int i = 0; i < projects.length; ++i) { -- 1.7.9.5